1
0
Fork 0
forked from github/pelican

The modified attribute no longer has a default value.

This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
This commit is contained in:
Florian Jacob 2013-11-17 23:40:11 +01:00
commit bd9d1b9539
54 changed files with 115 additions and 251 deletions

View file

@ -6,7 +6,10 @@
{{ translations.translations_for(page) }}
{{ page.content }}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% if page.modified %}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% endif %}
{% endblock %}