From 9b7e535fa76efdd4f76c23f3d7dee8d860b60642 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 9 Aug 2026 15:34:34 +0200 Subject: 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. --- templates/about.html | 2 ++ templates/base.html | 11 ++++++++++- templates/blog-post.html | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/about.html b/templates/about.html index 55a0778..eab1946 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% set pagefind_body = true %} + {% block meta %} {{ super() }} diff --git a/templates/base.html b/templates/base.html index 99341e7..83d4234 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,6 +13,7 @@ @@ -71,6 +72,9 @@ + @@ -122,6 +126,7 @@
{% block body %} Skip to main content +