aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/templates/includes/footer.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/pelican-bootstrap3/templates/includes/footer.html b/pelican-bootstrap3/templates/includes/footer.html
index ccd951b..b792835 100644
--- a/pelican-bootstrap3/templates/includes/footer.html
+++ b/pelican-bootstrap3/templates/includes/footer.html
@@ -3,7 +3,11 @@
<hr>
<div class="row">
{% if articles %}
- {% set copy_date = articles[0].date.strftime('%Y') %}
+ {% if articles[0].modified %}
+ {% set copy_date = articles[0].modified.strftime('%Y') %}
+ {% else %}
+ {% set copy_date = articles[0].date.strftime('%Y') %}
+ {% endif %}
{% else %}
{% set copy_date = '' %}
{% endif %}