feat: search caching fumble fix

This commit is contained in:
Dimitrie Stefanescu
2021-07-22 21:36:00 +01:00
parent 0de3c54f00
commit c53d544531
3 changed files with 8 additions and 266245 deletions
+5 -266243
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -188,7 +188,7 @@
limit: 3,
searchOptions: {
where: {
firstTag: "Tutorials"
firstTag: "tutorials"
},
},
onSearchEnd: function (posts) {
+2 -1
View File
@@ -24,6 +24,7 @@
key: window.searchKey,
postFields: ['title', 'url', 'excerpt', 'published_at'],
postsExtraFields: ['tags'],
debug: true,
emptyTemplate: function () {
return `
<p class="text-center text-sm col-span-3 dark:text-white" id='no-results'>No results found.</p>
@@ -40,7 +41,7 @@
outputChildsType: '',
searchOptions: {
where: {
firstTag: "Tutorials"
firstTag: "tutorials"
},
limit: 9
},