Use relLangURL for content paths

master
Will Faught 2 years ago
parent 30eaf84c66
commit 7fea12affc

@ -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;

Loading…
Cancel
Save