summaryrefslogtreecommitdiff
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
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.
-rw-r--r--i18n/en.toml3
-rw-r--r--i18n/es.toml3
-rw-r--r--layouts/404.html8
3 files changed, 14 insertions, 0 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index 0265788..7b9c38a 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -24,3 +24,6 @@
[navLinks]
other = "Navigation Links"
+
+[pageNotFound]
+ other = "Page Not Found"
diff --git a/i18n/es.toml b/i18n/es.toml
index 21889d7..781f115 100644
--- a/i18n/es.toml
+++ b/i18n/es.toml
@@ -25,3 +25,6 @@
[navLinks]
other = "Enlaces de navegación"
+
+[pageNotFound]
+ other = "Página no encontrada"
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 }}