mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
3b0823f5e6
commit
bd9d1b9539
54 changed files with 115 additions and 251 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<abbr class="published" title="{{ article.date.isoformat() }}">
|
||||
Published: {{ article.locale_date }}
|
||||
</abbr>
|
||||
{% if article.modified != article.date %}
|
||||
{% if article.modified %}
|
||||
<br />
|
||||
<abbr class="modified" title="{{ article.modified.isoformat() }}">
|
||||
Updated: {{ article.locale_modified }}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<abbr class="published" title="{{ article.date.isoformat() }}">
|
||||
{{ article.locale_date }}
|
||||
</abbr>
|
||||
{% if article.modified != article.date %}
|
||||
{% if article.modified %}
|
||||
<abbr class="modified" title="{{ article.modified.isoformat() }}">
|
||||
{{ article.locale_modified }}
|
||||
</abbr>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue