2
0
mirror of https://github.com/offen/website.git synced 2024-11-23 01:20:29 +01:00

display build date in footer

This commit is contained in:
Frederik Ring 2019-10-02 11:13:26 +02:00
parent 3a4105218b
commit 039d8b3e6d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
from datetime import datetime
from calendar import month_name
# If your site is available via HTTPS, make sure SITEURL begins with https:// # If your site is available via HTTPS, make sure SITEURL begins with https://
RELATIVE_URLS = False RELATIVE_URLS = False
@ -7,6 +9,8 @@ PATH = 'content'
TIMEZONE = 'Europe/Berlin' TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'en' DEFAULT_LANG = 'en'
BUILD_DATE = '{} {}'.format(month_name[datetime.today().month], datetime.today().year)
# Feed generation is usually not desired when developing # Feed generation is usually not desired when developing
FEED_ALL_ATOM = None FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None CATEGORY_FEED_ATOM = None

View File

@ -134,7 +134,7 @@
</p> </p>
</div> </div>
<div class="footer-card"> <div class="footer-card">
October 2019 {{ BUILD_DATE }}
</div> </div>
</div> </div>
</div> </div>