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 --- templates/404.html | 7 +++++-- templates/index.html | 4 ++-- templates/page.html | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'templates') 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 %}
- {{ post.title }} + {{ post.title }} {{ post.date | date(format="%B %e, %Y") }}
{%- 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