This commit is contained in:
2025-05-05 15:50:04 -03:00
parent 8b047e56fd
commit 1257e4ad81
9 changed files with 386 additions and 86 deletions

View File

@@ -15,6 +15,8 @@ const bundlePath = `${import.meta.env.BASE_URL}pagefind/`;
</div>
<script>
window.dataLayer = window.dataLayer || [];
import { PagefindUI } from "@pagefind/default-ui";
const element = "#pagefind-ui";
@@ -25,7 +27,7 @@ const bundlePath = `${import.meta.env.BASE_URL}pagefind/`;
const bundlePath = selector.getAttribute("data-bundle-path");
// Pagefind UI configuration options
// https://pagefind.app/docs/ui/
new PagefindUI({
const search = new PagefindUI({
element,
bundlePath,
autofocus: true,
@@ -33,9 +35,9 @@ const bundlePath = `${import.meta.env.BASE_URL}pagefind/`;
pageSize: 5,
});
const a =
selector.querySelector<HTMLInputElement>(`input[type="text"]`);
console.log(a);
console.log(search._pfs);
// search._pfs.$$set({ trigger_search_term: "aa" })
// console.log();
}
}

View File

@@ -22,7 +22,7 @@ const trends = await getEntries([
]);
---
<Layout>
<Layout title="Educação que garante sua segurança">
<div class="space-y-6 lg:space-y-24">
<Container>
<nav