diff options
| author | Dennis Fink | 2026-08-09 15:34:34 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-08-09 15:34:34 +0200 |
| commit | 9b7e535fa76efdd4f76c23f3d7dee8d860b60642 (patch) | |
| tree | 4d204556ef12f5ebd5ab585a05a04fd9cf286908 /templates/blog-post.html | |
| parent | 6135bf04509417823b63929524d31c53b47ac901 (diff) | |
| download | dennisfink.me-9b7e535fa76efdd4f76c23f3d7dee8d860b60642.tar.gz dennisfink.me-9b7e535fa76efdd4f76c23f3d7dee8d860b60642.zip | |
Add self-hosted Pagefind search
This adds the Pagefind component UI assets and wires the search modal
into the base template with a compact header trigger.
The integration marks searchable page bodies explicitly, exposes page
titles to Pagefind metadata, and adds site-specific styling so the
search modal, trigger, focus states, and keyboard-selected results match
the blog’s colour scheme.
Diffstat (limited to '')
| -rw-r--r-- | templates/blog-post.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/blog-post.html b/templates/blog-post.html index 1cb33db..fe751ae 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -2,6 +2,8 @@ {% from "macros/blog.html" import render_blog_post %} +{% set pagefind_body = true %} + {% set features = namespace(trail=false) %} {% for block in this.body.blocks %} |
