Use custom output format for search index
This commit is contained in:
@@ -64,9 +64,9 @@ if (paigeQueryElement !== null) {
|
||||
|
||||
function paigeSearch(queryText) {
|
||||
paigeShow(paigeSearchingElement);
|
||||
fetch("{{ relLangURL `index.json` | safeJS }}").then(function (response) {
|
||||
fetch("{{ relLangURL `paige-search.json` | safeJS }}").then(function (response) {
|
||||
if (response.status !== 200) {
|
||||
console.log("Cannot load {{ relLangURL `index.json` | safeJS }}", response);
|
||||
console.log("Cannot load {{ relLangURL `paige-search.json` | safeJS }}", response);
|
||||
paigeHide(paigeSearchingElement);
|
||||
paigeShow(paigeErrorElement);
|
||||
return;
|
||||
@@ -116,7 +116,7 @@ function paigeSearch(queryText) {
|
||||
paigeShow(paigeNothingElement);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log("Cannot search /index.json", error);
|
||||
console.log("Cannot search /paige-search.json", error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user