From cc6003d997e041127ac081e14a3213c4b898860d Mon Sep 17 00:00:00 2001
From: Dennis Fink
Date: Fri, 19 Jun 2026 18:35:56 +0200
Subject: Add page descriptions for metadata previews
This adds a description field to blog posts and uses it for the HTML
meta description and Open Graph description, with the blog tagline
remaining as the fallback.
Archive, category, and tag pages now define their own descriptions so
previews are more specific instead of all sharing the same generic site
tagline.
---
templates/base.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'templates/base.html')
diff --git a/templates/base.html b/templates/base.html
index 12e9803..0cec0b4 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -8,8 +8,9 @@
-
-
+ {% set page_description = description|default(this.description|default(bag('blog.tagline'), true), true) %}
+
+
--
cgit v1.3.1