From 99fe96443fe38685dc7d01f38cf7db9ce2ae5f79 Mon Sep 17 00:00:00 2001
From: Dennis Fink
Date: Wed, 4 Nov 2026 18:47:45 +0100
Subject: Use date-only values in blog post metadata
This removes hardcoded timestamps and timezone offsets from publication
and modification dates in Open Graph and JSON-LD metadata.
Dates are now formatted as `YYYY-MM-DD`, avoiding the need to specify an
arbitrary time or timezone for date-only information.
---
templates/blog-post.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'templates')
diff --git a/templates/blog-post.html b/templates/blog-post.html
index 10f8f7e..6c74033 100644
--- a/templates/blog-post.html
+++ b/templates/blog-post.html
@@ -21,13 +21,13 @@
{% if this.publication_date %}
{% endif %}
{% if latest_change %}
+ content="{{ latest_change.date | dateformat('yyyy-MM-dd') }}">
{% endif %}
{% if this.category %}
{% set category = site.get("/categories/" + this.category) %}
@@ -77,8 +77,8 @@
"headline": {{ this.title | tojson }},
"name": {{ this.title | tojson }},
"description": {{ post_description | tojson }},
- "datePublished": "{{ this.publication_date | dateformat('yyyy-MM-dd') }}T00:00:00Z",
- "dateModified": "{{ modified_date | dateformat('yyyy-MM-dd') }}T00:00:00Z",
+ "datePublished": "{{ this.publication_date | dateformat('yyyy-MM-dd') }}",
+ "dateModified": "{{ modified_date | dateformat('yyyy-MM-dd') }}",
"inLanguage": "en",
"author": {
"@id": "{{ person_id }}"
--
cgit v1.3.1