Add last updated date and make publish&change dates show only when necessary
This commit is contained in:
parent
f19fc2fd0a
commit
827df4e2da
1 changed files with 5 additions and 0 deletions
|
@ -1,7 +1,12 @@
|
|||
{% extends "base.html" %} {% block content %}
|
||||
<h3>{{ page.title }}</h3>
|
||||
<article>
|
||||
{% if page.date and page.date is defined %}
|
||||
<p>Published on: {{ page.date }}</p>
|
||||
{% endif %}
|
||||
{% if page.updated and page.updated != page.date %}
|
||||
<p>Last updated on: {{ page.updated }}</p>
|
||||
{% endif %}
|
||||
<div>
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue