File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Customize SimpleJekyllSearch by passing in your configuration options:
96
96
var sjs = SimpleJekyllSearch ({
97
97
searchInput: document .getElementById (' search-input' ),
98
98
resultsContainer: document .getElementById (' results-container' ),
99
- json: ' / search.json'
99
+ json: ' {% link search.json %} '
100
100
})
101
101
```
102
102
Original file line number Diff line number Diff line change 49
49
new SimpleJekyllSearch ( {
50
50
searchInput : document . getElementById ( 'search-input' ) ,
51
51
resultsContainer : document . getElementById ( 'results-container' ) ,
52
- json : '{{ site.baseurl }}/ search.json' ,
52
+ json : '{{ site.baseurl }}{% link search.json %} ' ,
53
53
searchResultTemplate : '<li><a href="{url}?query={query}" title="{desc}">{title}</a></li><blockquote><small>{content}</small></blockquote>' ,
54
54
templateMiddleware : templateMiddleware ,
55
55
noResultsText : 'No results found' ,
You can’t perform that action at this time.
0 commit comments