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

further clean up routing logic

This commit is contained in:
Frederik Ring 2019-10-06 13:52:45 +02:00
parent af1df38a56
commit e137363d61
4 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
.vscode
.serverless
node_modules/
public/
*.pem
venv/

View File

@ -59,6 +59,10 @@ http {
proxy_redirect off;
}
location /favicon.ico {
root /www/data/theme/images;
}
error_page 404 /404.html;
location = /404.html {
internal;

View File

@ -2,6 +2,7 @@ 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.
save_as: 404.html
href: /404.html
no_stats: true
![Page not Found](/theme/images/content-404.webp){:class="image-text-560-315"}

View File

@ -22,7 +22,7 @@
{% assets filters="cssmin", output="css/style.min.css", "css/normalize.css", "css/fonts.css", "css/style.css" %}
<link rel="stylesheet" href="/{{ ASSET_URL }}">
{% endassets %}
{% if OFFEN_ACCOUNT_ID %}
{% if OFFEN_ACCOUNT_ID and not page.no_stats %}
<script async src="/script.js" data-account-id="{{ OFFEN_ACCOUNT_ID }}"></script>
{% endif %}
</head>