aboutsummaryrefslogtreecommitdiff
path: root/layouts/404.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2024-05-20 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2024-05-20 00:00:00 +0000
commit062d7e1ce2346a329f7c4546a8b224ef01c404b21759453a01da9c72eb8f7f5b (patch)
treeb182b86d3fe3ca0307fd3c4660f7dd692492c3defd9983981c3ca58217d5f1f6 /layouts/404.html
parenta9b232e3fc3431ae4d5f75b00c2415f471ff5c9f48979655889a145291b8665b (diff)
downloadhugo-theme-journal-062d7e1ce2346a329f7c4546a8b224ef01c404b21759453a01da9c72eb8f7f5b.tar.gz
hugo-theme-journal-062d7e1ce2346a329f7c4546a8b224ef01c404b21759453a01da9c72eb8f7f5b.zip
Create custom 404 page for HTMLv1.3.0
In Gemini, the equivalent status code is 51. It does not return a response body, so no equivalent page was created for Gemini.
Diffstat (limited to 'layouts/404.html')
-rw-r--r--layouts/404.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..f3b9742
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,8 @@
+{{ define "main" -}}
+<nav>
+ <p>{{ emojify ":link:" | safeHTML }} <a class="link" href="{{ .Site.Home.RelPermalink }}" rel="noreferrer">{{ i18n "returnHome" }}</a></p>
+</nav>
+<main>
+ <h1 id="404">{{ i18n "pageNotFound" }}</h1>
+</main>
+{{- end }}