Fix relative path to pagefind script

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2026-03-24 10:56:03 +01:00
parent 308bcfd20e
commit bccbff878d

View file

@ -25,7 +25,9 @@ search backend.
"use strict"; "use strict";
$(document).ready(async function () { $(document).ready(async function () {
const pagefind = await import("./pagefind/pagefind.js"); // This is going to be loaded from ${deployment}/js/main.js so to use a relative path
// to the Pagefind script we need to navigate one level up.
const pagefind = await import("../pagefind/pagefind.js");
const $searchInput = $(".td-search input"); const $searchInput = $(".td-search input");
// //