From 28e994398c8278eb692ed2b7591361b98477c916 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 24 Nov 2023 10:20:54 +0200 Subject: [PATCH] feat: add 404 --- templates/404.html | 6 ++++++ templates/layouts/base.html | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 templates/404.html diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..ab149e3 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,6 @@ +{% extends "layouts/base.html" %} +{% block content %} +
+

404

+
+{% endblock content %} diff --git a/templates/layouts/base.html b/templates/layouts/base.html index 71a5815..1c58157 100644 --- a/templates/layouts/base.html +++ b/templates/layouts/base.html @@ -25,12 +25,17 @@ >
{{ config.title }} + {% if current_url %} {% set_global path = "" %} {% for c in this.components %} {% set_global path = path ~ "/" ~ c %} / {{ c }} {% endfor %} + {% else %} + / +

404

+ {% endif %}
-- 2.44.1