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

Optimize url filters

This commit is contained in:
Cotes Chung
2021-01-18 23:27:43 +08:00
parent ab0e3f6ee4
commit 75e9feb687
4 changed files with 7 additions and 7 deletions

View File

@@ -25,8 +25,8 @@
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'),
json: '{{ site.baseurl }}/assets/js/data/search.json',
json: '{{ '/assets/js/data/search.json' | relative_url }}',
searchResultTemplate: '{{ result_elem | strip_newlines }}',
noResultsText: '{{ not_found }}'
});
</script>
</script>