Browse Source

Trying to make the template show when a post was updated

master
Julio Biason 2 years ago
parent
commit
8af234ba87
  1. 11
      templates/macros/post.html

11
templates/macros/post.html

@ -27,6 +27,16 @@
{% endmacro post_date %}
{% macro updated(page) %}
<!-- updated -->
{%- if page.updated %}
<div class="post-date-updated">
Updated {{ page.updated | date(format="%Y-%m-%d") }}
</div>
{%- endif %}
{% endmacro updated %}
{% macro earlier_later(page) %}
{%- if config.extra.enable_post_view_navigation and page.earlier or page.later %}
<div class="pagination">
@ -64,6 +74,7 @@
</div>
{{ post_macros::tags(page=page) }}
{{ post_macros::updated(page=page) }}
{% endmacro header %}

Loading…
Cancel
Save