1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Code optimization.

This commit is contained in:
Cotes Chung
2020-01-01 00:18:21 +08:00
parent 3248343c22
commit 77b2b5be04
2 changed files with 4 additions and 2 deletions

View File

@@ -16,12 +16,14 @@
</div>
{% endcapture %}
{% capture not_found %}<p class="mt-5">Oops! No result founds.</p>{% endcapture %}
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'),
json: '{{ site.baseurl }}/search.json',
searchResultTemplate: '{{ result_elem }}',
noResultsText: '<p class="mt-5">Oops! No result founds.</p>'
noResultsText: '{{ not_found }}'
});
</script>