Browse Source

Change check for article.modified which is no longer needed after change in Pelican (>3.3) code

See these discussions

https://github.com/getpelican/pelican/pull/1161
https://github.com/getpelican/pelican/pull/1148
Talha Mansoor 11 years ago
parent
commit
208f42c0d5
1 changed files with 0 additions and 8 deletions
  1. 0 8
      templates/_includes/last_updated.html

+ 0 - 8
templates/_includes/last_updated.html

@@ -4,19 +4,11 @@ If it is >3.3 than modified is a datetime object
 #}
 {% if article.locale_modified and article.modified %}
 
-    {#  This check is necessary because modified is set to date by default.
-    It should be displayed only if user has explicitly set it.
-    #}
-    {% if article.modified != article.date %}
-
 <h4>Last Updated</h4>
 {% set day = article.modified.strftime('%d')|int %}
 <time datetime="{{ article.modified.isoformat() }}">{{ article.modified.strftime('%b') }} {{ day }} {{- article.modified.strftime(', %Y') }}</time>
 
-    {% endif %}
-
 {% elif article.modified %}
-
 <h4>Last Updated</h4>
 <div class="last-updated">{{ article.modified }}</div>