mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
Merge pull request #146 from offen/404-nginx
Add nginx configuration for 404 page, display build date in footer
This commit is contained in:
commit
1e2336a4b1
@ -45,6 +45,13 @@ http {
|
|||||||
location /auditorium/ {
|
location /auditorium/ {
|
||||||
try_files $uri $uri/ /auditorium/index.html;
|
try_files $uri $uri/ /auditorium/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_page 404 /404.html;
|
||||||
|
location = /404.html {
|
||||||
|
internal;
|
||||||
|
root /www/data;
|
||||||
|
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive" always;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Title: Page not found | offen
|
Title: Page not found | offen
|
||||||
description: offen is a free and open source analytics software for websites and web applications that allows respectful handling of data.
|
description: offen is a free and open source analytics software for websites and web applications that allows respectful handling of data.
|
||||||
save_as: 404/index.html
|
save_as: 404.html
|
||||||
href: /404/
|
href: /404.html
|
||||||
|
|
||||||
|
|
||||||
![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"}
|
![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"}
|
||||||
|
@ -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