summaryrefslogtreecommitdiff
path: root/templates/blog.html
diff options
context:
space:
mode:
authorDennis Fink2026-07-14 19:38:31 +0200
committerDennis Fink2026-07-14 19:38:31 +0200
commit5c65f40bbca27dfb26e75cb027f287b2aa78cd3a (patch)
treeb21a1d58ee9efde63f7a5a1f7545b2c6bd03a4ef /templates/blog.html
parent206400382a5c111842fd77c8418ad94a85f2da99 (diff)
downloaddennisfink.me-5c65f40bbca27dfb26e75cb027f287b2aa78cd3a.tar.gz
dennisfink.me-5c65f40bbca27dfb26e75cb027f287b2aa78cd3a.zip
Add structured data and microformats
This adds JSON-LD for the site, author, blog, and individual blog posts, so search engines and other consumers can understand the blog structure more clearly. It also adds Microformats2 classes to blog posts and the about page, keeping machine-readable author, post, category, date, and content data attached to the visible HTML.
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
index 0ee96c7..4c011a1 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -6,10 +6,17 @@
{{ super() }}
<meta property="og:type" content="website">
{% endblock %}
+
+{% block json_ld %}
+ {{ super() }}
+ {% include "includes/blog-json-ld.html" %}
+{% endblock json_ld %}
+
{% block styles %}
{{ super() }}
<link rel="stylesheet"
type="text/css"
href="{{ '/static/css/blog.css'|asseturl }}">
{% endblock %}
+
{% block content %}{{ render_blog_index(this.pagination) }}{% endblock %}