diff options
author | Justin Mayer <entroP@gmail.com> | 2016-12-13 08:42:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 08:42:31 -0800 |
commit | be36234f9f7fb4633d7e2eee89833839d7cbf1eb (patch) | |
tree | 25372a2e267ee225a7fcd3f61272aed388fcd663 | |
parent | 6b50ce46499d696f8f4b8e0e4632cbced361e99e (diff) | |
parent | 7b9a52f9bbd38f3b37217f665c9f5654b4b9be1f (diff) | |
download | pelican-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.html | 6 |
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 %} |