summaryrefslogtreecommitdiff
path: root/templates/blog-post.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/blog-post.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/blog-post.html b/templates/blog-post.html
index fe751ae..a8eaf37 100644
--- a/templates/blog-post.html
+++ b/templates/blog-post.html
@@ -13,6 +13,7 @@
{% endfor %}
{% set needs_trail_assets = features.trail %}
+{% set latest_change = this.changelog.blocks | max(attribute="date") if this.changelog else none %}
{% block meta %}
{{ super() }}
@@ -22,9 +23,9 @@
<meta property="article:published_time"
content="{{ this.publication_date }}T00:00:00+02:00">
{% endif %}
- {% if this.updated_date %}
+ {% if latest_change %}
<meta property="article:modified_time"
- content="{{ this.updated_date }}T00:00:00+02:00">
+ content="{{ latest_change.date }}T00:00:00+02:00">
{% endif %}
{% if this.category %}
{% set category = site.get("/categories/" + this.category) %}
@@ -46,8 +47,8 @@
{% set blog_url = '/blog' | url(absolute=True, external=True) %}
{% set blog_id = blog_url ~ '#blog' %}
{% set modified_date = this.publication_date %}
- {% if this.updated_date %}
- {% set modified_date = this.updated_date %}
+ {% if latest_change %}
+ {% set modified_date = latest_change.date %}
{% endif %}
{% set post_description = bag('blog.tagline') %}
{% if this.description %}