From aa2bca89df5edb113c3dc838fc7cb6a379d93386 Mon Sep 17 00:00:00 2001
From: Yaroslav <contact@yaroslavps.com>
Date: Sat, 1 Aug 2020 21:54:34 +0300
Subject: page template: show updated date if updated after publish date

---
 templates/page.html | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'templates/page.html')

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">
-- 
cgit v1.2.3