From 827df4e2dac215391f72dd9782dd3d2d8e26c681 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Tue, 29 Jun 2021 22:52:39 +0200 Subject: [PATCH] Add last updated date and make publish&change dates show only when necessary --- templates/page.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/page.html b/templates/page.html index 491fecd..a61f999 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,7 +1,12 @@ {% extends "base.html" %} {% block content %}

{{ page.title }}

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

Published on: {{ page.date }}

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

Last updated on: {{ page.updated }}

+ {% endif %}
{{ page.content | safe }}