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"
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"
+++

View File

@ -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"
+++

View File

@ -12,12 +12,12 @@
</h2>
{% if page.date and page.date is defined %}
<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>
{% endif %}
{% if page.updated and page.updated != page.date %}
<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>
{% endif %}
<div>