Improve date formatting and add publish times to pages

This commit is contained in:
Jonas Tobias Hopusch 2021-08-26 10:18:51 +02:00
parent 0d2568b0c4
commit f17136c073
Failed to generate hash of commit
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
+++ +++
title = "My online profiles and different communication channels" 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." 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" updated = "2021-08-20 07:56:36+02:00"
+++ +++

View file

@ -1,7 +1,7 @@
+++ +++
title = "Services hosted on jotoho.de" 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." 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" updated = "2021-08-25 18:05:24+02:00"
+++ +++

View file

@ -12,12 +12,12 @@
</h2> </h2>
{% if page.date and page.date is defined %} {% if page.date and page.date is defined %}
<p> <p>
<em><strong>Published on</strong>: {{ page.date | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</em> <em><strong>Published on</strong>: {{ page.date | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}</em>
</p> </p>
{% endif %} {% endif %}
{% if page.updated and page.updated != page.date %} {% if page.updated and page.updated != page.date %}
<p> <p>
<em><strong>Last updated on</strong>: {{ page.updated | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</em> <em><strong>Last updated on</strong>: {{ page.updated | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}</em>
</p> </p>
{% endif %} {% endif %}
<div> <div>