summaryrefslogtreecommitdiff
path: root/layouts/section/posts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-03 19:51:51 +0800
committerEltrac <hi@guhub.cn>2025-02-03 19:51:51 +0800
commit9822717294eb18dc3d61f1eb0a073901c612f9f8 (patch)
treec0748023855b9eb2f41b169a56cde4b20a314220 /layouts/section/posts.html
parentb66875b29bc39d9ecf5ba37cdacc713562ee7d67 (diff)
feat(theme): add pagefind search
Former-commit-id: 67383a3a076bd6c1fef57e7502c1c9809c0d4519
Diffstat (limited to 'layouts/section/posts.html')
-rw-r--r--layouts/section/posts.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/section/posts.html b/layouts/section/posts.html
index 1f433ac9..8dd142f7 100644
--- a/layouts/section/posts.html
+++ b/layouts/section/posts.html
@@ -9,6 +9,8 @@
</div>
<script>initCalHeatmap();</script>
+ {{ partial "components/pagefind.html" . }}
+
<!-- Post Archive List -->
{{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}}
<section class="posts-year-archive">