assets/js/search.js in plainwhite-0.11 vs assets/js/search.js in plainwhite-0.12
- old
+ new
@@ -1,9 +1,12 @@
+---
+---
+
window.onload = function () {
var sjs = SimpleJekyllSearch({
searchInput: document.getElementById('searchbar'),
resultsContainer: document.getElementById('search-results'),
- json: '/search.json',
+ json: '{{ "/search.json" | relative_url }}',
searchResultTemplate: '<a href="{url}" target="_blank">{title}</a>',
noResultsText: ''
});
/* hack ios safari unfocus */