Display date of last update for posts

This commit is contained in:
Philipp Oppermann
2017-06-13 17:35:08 +02:00
parent 6f8999ada5
commit e84c8ac638
8 changed files with 11 additions and 1 deletions

View File

@@ -4,7 +4,10 @@
{% block main %}
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">{{ page.date | date(format="%b %d, %Y") }}</time>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
{{ page.date | date(format="%b %d, %Y") }}
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
</time>
{{ page.content | safe }}
{% endblock main %}