Skip to content

Commit 5149e39

Browse files
Prepending baseurl to search.json
See issue #5
1 parent 4c06e8c commit 5149e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/topnav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
SimpleJekyllSearch.init({
6666
searchInput: document.getElementById('search-input'),
6767
resultsContainer: document.getElementById('results-container'),
68-
dataSource: '{{ "search.json" }}',
68+
dataSource: '{{ "/search.json" | prepend: site.baseurl }}',
6969
searchResultTemplate: '<li><a href="{url}" title="{{page.title | escape }}">{title}</a></li>',
7070
noResultsText: '{{site.data.strings.search_no_results_text}}',
7171
limit: 10,

0 commit comments

Comments
 (0)