From 8af234ba875122de888f2b0361003352f129575e Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 26 Oct 2020 11:07:42 -0300 Subject: [PATCH] Trying to make the template show when a post was updated --- templates/macros/post.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/macros/post.html b/templates/macros/post.html index b514978..58d4946 100644 --- a/templates/macros/post.html +++ b/templates/macros/post.html @@ -27,6 +27,16 @@ {% endmacro post_date %} +{% macro updated(page) %} + + {%- if page.updated %} +
+ Updated {{ page.updated | date(format="%Y-%m-%d") }} +
+ {%- endif %} +{% endmacro updated %} + + {% macro earlier_later(page) %} {%- if config.extra.enable_post_view_navigation and page.earlier or page.later %} {{ post_macros::tags(page=page) }} + {{ post_macros::updated(page=page) }} {% endmacro header %}