From 2b2d89ffd233e331a6985fe762ac339befc972a3 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Mon, 17 Aug 2026 19:36:16 +0200 Subject: Add post changelogs This replaces the manual `updated_date` field with a changelog flow field so post updates can be recorded as dated entries. The blog template now derives the "Last updated" metadata from the latest changelog entry and renders the full changelog in the article footer, with dedicated styling for compact change notes. --- templates/macros/blog.html | 51 +++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 16 deletions(-) (limited to 'templates/macros/blog.html') diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 13c2526..d076762 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -29,6 +29,8 @@ {% endfor %} {% endif %} + {% set latest_change = post.changelog.blocks | max(attribute="date") if post.changelog else none %} +
@@ -54,12 +56,12 @@
{% endif %} - {% if post.updated_date and post.publication_date and (post.updated_date > post.publication_date) %} + {% if latest_change and post.publication_date and latest_change.date > post.publication_date %}
Last updated:
- +
{% endif %} @@ -82,20 +84,37 @@ {% endif %}
{{ post.body }}
- {% if post.tags %} + {% if post.tags or post.changelog %} {% endif %}
-- cgit v1.3.1