2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +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 .vscode
.serverless .serverless
node_modules/ node_modules/
public/
*.pem *.pem
venv/ venv/

View File

@ -59,6 +59,10 @@ http {
proxy_redirect off; proxy_redirect off;
} }
location /favicon.ico {
root /www/data/theme/images;
}
error_page 404 /404.html; error_page 404 /404.html;
location = /404.html { location = /404.html {
internal; 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. 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 save_as: 404.html
href: /404.html href: /404.html
no_stats: true
![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"}

View File

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