commit 99c9a119221949cbf153373bcb610bf1797d227b
parent 80d40491ec09f5de03e3b6ccd693dc8d87fb621f
author: nathanael <nathanael@dalliard.ch>
date: Thu, 25 Sep 2025 13:43:47 +0000
add 404 page
diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/layouts/404.html b/layouts/404.html
@@ -0,0 +1,5 @@
+{{ define "title" }}404 page not found{{ end }}
+{{ define "main" }}
+<h1>404</h1>
+<p>not found</p>
+{{ end }}
diff --git a/layouts/baseof.html b/layouts/baseof.html
@@ -3,7 +3,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
-<title>{{ .Title }}</title>
+<title>{{ block "title" . }}{{ .Title }}{{ end }}</title>
<header>
<a href="/"><svg><use xlink:href="/dalliard.svg#logo"></use></svg></a>
</header>