aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2016-12-13 08:42:31 -0800
committerGitHub <noreply@github.com>2016-12-13 08:42:31 -0800
commitbe36234f9f7fb4633d7e2eee89833839d7cbf1eb (patch)
tree25372a2e267ee225a7fcd3f61272aed388fcd663
parent6b50ce46499d696f8f4b8e0e4632cbced361e99e (diff)
parent7b9a52f9bbd38f3b37217f665c9f5654b4b9be1f (diff)
downloadpelican-themes-be36234f9f7fb4633d7e2eee89833839d7cbf1eb.tar.gz
Merge pull request #442 from jranke/copyright_date
pelican-bootstrap3: Set copyright date to modified date of latest article
-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 %}