diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-08-01 21:54:34 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-08-01 21:54:34 +0300 |
commit | aa2bca89df5edb113c3dc838fc7cb6a379d93386 (patch) | |
tree | 690d35d18fe512d7ff0da9489cd3ed092268e432 /templates/page.html | |
parent | bd0f16455013366b8ec8a89d8509048d3a07668b (diff) | |
download | yaroslavps.com-aa2bca89df5edb113c3dc838fc7cb6a379d93386.tar.gz yaroslavps.com-aa2bca89df5edb113c3dc838fc7cb6a379d93386.zip |
page template: show updated date if updated after publish date
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 4 |
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"> |