From f17136c0737711bc222b7a6b57e9ebec0c643ea2 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Thu, 26 Aug 2021 10:18:51 +0200 Subject: [PATCH] Improve date formatting and add publish times to pages --- content/profiles/index.md | 2 +- content/servers/index.md | 2 +- templates/page.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/profiles/index.md b/content/profiles/index.md index 2d9ffde..1217749 100644 --- a/content/profiles/index.md +++ b/content/profiles/index.md @@ -1,7 +1,7 @@ +++ title = "My online profiles and different communication channels" description = "On this page I list a selection of different online accounts owned by me and communication services that can be used to talk with me." -date = 2021-08-17 +date = "2021-08-17 10:21:34+02:00" updated = "2021-08-20 07:56:36+02:00" +++ diff --git a/content/servers/index.md b/content/servers/index.md index 9d2f0ef..941cb45 100644 --- a/content/servers/index.md +++ b/content/servers/index.md @@ -1,7 +1,7 @@ +++ title = "Services hosted on jotoho.de" description = "This page lists the various servers running under the jotoho.de domain name and by who and how they may be accessed." -date = 2021-06-29 +date = "2021-06-29 22:14:11+02:00" updated = "2021-08-25 18:05:24+02:00" +++ diff --git a/templates/page.html b/templates/page.html index 6b4e7e4..0887d82 100644 --- a/templates/page.html +++ b/templates/page.html @@ -12,12 +12,12 @@ {% if page.date and page.date is defined %}

- Published on: {{ page.date | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }} + Published on: {{ page.date | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}

{% endif %} {% if page.updated and page.updated != page.date %}

- Last updated on: {{ page.updated | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }} + Last updated on: {{ page.updated | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}

{% endif %}