Use relLangURL for content paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }}
|
||||
{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }}
|
||||
{{ $pills := false }}
|
||||
{{ $tabs := false }}
|
||||
{{ $underline := false }}
|
||||
|
@@ -64,9 +64,9 @@ if (paigeQueryElement !== null) {
|
||||
|
||||
function paigeSearch(queryText) {
|
||||
paigeShow(paigeSearchingElement);
|
||||
fetch("{{ absURL `index.json` | safeJS }}").then(function (response) {
|
||||
fetch("{{ relLangURL `index.json` | safeJS }}").then(function (response) {
|
||||
if (response.status !== 200) {
|
||||
console.log("Cannot load /index.json", response);
|
||||
console.log("Cannot load {{ relLangURL `index.json` | safeJS }}", response);
|
||||
paigeHide(paigeSearchingElement);
|
||||
paigeShow(paigeErrorElement);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user