From 447df83a643070815d4d3a903fe1fbee2b4f21ce Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 15 Sep 2021 21:13:37 +0200 Subject: [PATCH 1/4] Make dates on page template machine readable --- templates/page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/page.html b/templates/page.html index 0887d82..f86071e 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 %R %Z", timezone="Europe/Berlin") }} + Published on:

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

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

{% endif %}
-- 2.45.2 From 448b2c144cdaa58832b699252926d7a348322498 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 15 Sep 2021 21:14:09 +0200 Subject: [PATCH 2/4] Apply formatting suggestions of Editor to page template --- templates/page.html | 49 ++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/templates/page.html b/templates/page.html index f86071e..0d88a20 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,26 +1,29 @@ -{% extends "base.html" %} +{% extends "base.html" %} {% block metadata %} -{% block metadata %} + - - -{% endblock %} - -{% block content %} -

- {{ page.title }} -

- {% if page.date and page.date is defined %} -

- Published on: -

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

- Last updated on: -

- {% endif %} -
- {{ page.content | safe }} -
+{% endblock %} {% block content %} +

{{ page.title }}

+{% if page.date and page.date is defined %} +

+ Published on: + +

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

+ Last updated on: + +

+{% endif %} +
{{ page.content | safe }}
{% endblock content %} -- 2.45.2 From 2810b356747d678f3913d8c624aeffc3a1603987 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 15 Sep 2021 21:20:05 +0200 Subject: [PATCH 3/4] Apply formatting suggestions for base.html --- templates/base.html | 53 +++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/templates/base.html b/templates/base.html index 6fad7f8..e86be7b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,10 +3,18 @@ - + - + jotoho.de - A personal website @@ -15,39 +23,56 @@

-
- {% block content %} {% endblock %} -
+
{% block content %} {% endblock %}

- Copyright {{ now() | date(format="%Y", timezone="Europe/Berlin") }} Jonas Tobias Hopusch (@jotoho) - All rights reserved

This page is being served using - GitLab Pages + GitLab Pages and created with the help of - Zola. - You can contact me via + Zola. You + can contact me via email regarding any issues with this website.

- You can download my OpenPGP public keys here. + You can download my OpenPGP public keys + here.

-- 2.45.2 From 319c02fabca92e5ce5fbee430d13ff40e06558c1 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 15 Sep 2021 21:28:10 +0200 Subject: [PATCH 4/4] Make Copyright year in footer machine readable --- templates/base.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index e86be7b..1364a4d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -50,8 +50,12 @@