summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 16:06:30 +0800
committereltrac <hi@eltr.ac>2026-04-07 16:06:30 +0800
commit41211f601d30b1e1601d83ff66759f69dcc4ac58 (patch)
treea942d15bf710e62aa2561cd97f3fdd7ec8fa2cbb
parent349c586b85c425d4af0dd0363f4791f903c3c78d (diff)
feat: use new pagefind component ui
-rw-r--r--layouts/_partials/head/css.html2
-rw-r--r--layouts/_partials/taxonomy/pagefind.html7
2 files changed, 2 insertions, 7 deletions
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
index 7ff49fd..c0e9b11 100644
--- a/layouts/_partials/head/css.html
+++ b/layouts/_partials/head/css.html
@@ -1,5 +1,5 @@
<!-- Pagefind -->
-<link rel="stylesheet" href="/pagefind/pagefind-ui.css">
+<link href="/pagefind/pagefind-component-ui.css" rel="stylesheet">
<!-- Extra -->
{{ range .Site.Params.extraCSSFiles -}}
diff --git a/layouts/_partials/taxonomy/pagefind.html b/layouts/_partials/taxonomy/pagefind.html
index 2c41457..76166df 100644
--- a/layouts/_partials/taxonomy/pagefind.html
+++ b/layouts/_partials/taxonomy/pagefind.html
@@ -1,7 +1,2 @@
<div id="pagefind" class="py-3"></div>
-<script src="/pagefind/pagefind-ui.js"></script>
-<script>
- window.addEventListener('DOMContentLoaded', () => {
- new PagefindUI({ element: "#pagefind", showSubResults: true });
- });
-</script>
+<script src="/pagefind/pagefind-component-ui.js" type="module"></script>