mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
display build date in footer
This commit is contained in:
parent
3a4105218b
commit
039d8b3e6d
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user