From 5f4c0e6ac4a77eb3de31156a64ee083e5681186a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sat, 21 Jan 2023 11:02:25 +0100 Subject: fix 404 and relative links --- config.toml | 2 +- static/humans.txt | 15 --------------- templates/404.html | 7 +++++-- templates/index.html | 4 ++-- templates/page.html | 2 +- 5 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 static/humans.txt diff --git a/config.toml b/config.toml index ada343d..ed8eee3 100644 --- a/config.toml +++ b/config.toml @@ -7,6 +7,6 @@ title = "dnns.no" author = "Dennis Eriksen" intro = "This site contains articles of various quality, and is sort of a private-but-public documentation of various things. Maybe there'll be some \"normal\" blog-posts at some point as well. Who knows." -logo = "https://dnns.no/img/giraffe.svg" +logo = "" copyright = 'Dennis Eriksen © 2017-2023' diff --git a/static/humans.txt b/static/humans.txt deleted file mode 100644 index 8d2330f..0000000 --- a/static/humans.txt +++ /dev/null @@ -1,15 +0,0 @@ -# humanstxt.org/ -# The humans responsible & technology colophon - -# TEAM - - -- -- - -# THANKS - - - -# TECHNOLOGY COLOPHON - - CSS3, HTML5 - Apache Server Configs, jQuery, Modernizr, Normalize.css diff --git a/templates/404.html b/templates/404.html index 02d0a66..6eadf4d 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,8 +1,11 @@ -{% extends "index.html" %} +{% extends "page.html" %} + +{% block title %}404 · {{ config.title }}{% endblock title %} {% block content %}
-

404

+

404

Page not found, dude.

+

Click here to return to the front page.

{% endblock content %} diff --git a/templates/index.html b/templates/index.html index 222ea74..b7dd98b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,7 +21,7 @@ {% block header %}
- +

{{ config.extra.title }}

{% endblock header %} @@ -38,7 +38,7 @@ {%- for post in posts %} {%- endfor %} diff --git a/templates/page.html b/templates/page.html index 6a83bc0..7405a3f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,7 +4,7 @@ {% block header %}
- +
{% endblock header %} -- cgit v1.2.3