From e7e365c239f766a8d2271c233f16c4df53a9bbb3 Mon Sep 17 00:00:00 2001
From: Dennis Fink
Date: Wed, 4 Nov 2026 18:41:23 +0100
Subject: Improve Pagefind indexing and filtering
This adds publication dates, categories, and tags to Pagefind metadata,
enabling search results to be sorted by date and filtered by category or
tag.
It also excludes tables of contents, post metadata, and footer sections
from search indexing to keep results focused on the actual article
content.
---
templates/blog-post.html | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
(limited to 'templates/blog-post.html')
diff --git a/templates/blog-post.html b/templates/blog-post.html
index 3bde48d..4f1e5a2 100644
--- a/templates/blog-post.html
+++ b/templates/blog-post.html
@@ -21,7 +21,9 @@
{% if this.publication_date %}
+ content="{{ this.publication_date }}T00:00:00+02:00"
+ data-pagefind-meta="date[content]"
+ data-pagefind-sort="date[content]">
{% endif %}
{% if latest_change %}
+
{% endif %}
{% for t in this.tags %}
-
+
{% endfor %}
{% endblock %}
--
cgit v1.3.1