summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorDennis Fink2026-06-19 18:35:56 +0200
committerDennis Fink2026-06-19 18:35:56 +0200
commitcc6003d997e041127ac081e14a3213c4b898860d (patch)
treee08ae35574e8465994953bdc3126039ecce21516 /models
parent41e364a3278ebe673cc851a80c206885076ed569 (diff)
downloaddennisfink.me-cc6003d997e041127ac081e14a3213c4b898860d.tar.gz
dennisfink.me-cc6003d997e041127ac081e14a3213c4b898860d.zip
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.
Diffstat (limited to '')
-rw-r--r--models/blog-post.ini15
1 files changed, 12 insertions, 3 deletions
diff --git a/models/blog-post.ini b/models/blog-post.ini
index 4f36c1e..dec758a 100644
--- a/models/blog-post.ini
+++ b/models/blog-post.ini
@@ -23,6 +23,17 @@ type = select
source = site.query('/categories')
width = 1/2
+[fields.tags]
+label = Tags
+type = strings
+width = 1/2
+
+[fields.description]
+label = Description
+type = string
+description = Short summary used for the HTML meta description and Open Graph previews.
+width = 1/2
+
[fields.render_toc]
label = Render TOC
type = boolean
@@ -34,6 +45,4 @@ width = 1/2
label = Body
type = markdown
-[fields.tags]
-label = Tags
-type = strings
+