aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-01 21:54:34 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-01 21:54:34 +0300
commitaa2bca89df5edb113c3dc838fc7cb6a379d93386 (patch)
tree690d35d18fe512d7ff0da9489cd3ed092268e432
parentbd0f16455013366b8ec8a89d8509048d3a07668b (diff)
downloadyaroslavps.com-aa2bca89df5edb113c3dc838fc7cb6a379d93386.tar.gz
yaroslavps.com-aa2bca89df5edb113c3dc838fc7cb6a379d93386.zip
page template: show updated date if updated after publish date
-rw-r--r--templates/page.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
index 699bd96..a442437 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -17,6 +17,10 @@
{% elif page.permalink is containing("food") %}
<a href="/food">Yaroslav's recipe book</a></p>
{% endif %}
+ {% if page.updated %}
+ <p class="publish-date">Last edited {{ page.updated | date(format="%b %d, %Y
+ %H:%M UTC") }}</p>
+ {% endif %}
{% endblock %}
{% block content %}
<div class="post-container">