From 062d7e1ce2346a329f7c4546a8b224ef01c404b21759453a01da9c72eb8f7f5b Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Mon, 20 May 2024 00:00:00 +0000 Subject: Create custom 404 page for HTML In Gemini, the equivalent status code is 51. It does not return a response body, so no equivalent page was created for Gemini. --- i18n/en.toml | 3 +++ i18n/es.toml | 3 +++ layouts/404.html | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 layouts/404.html 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" -}} + +
+

{{ i18n "pageNotFound" }}

+
+{{- end }} -- cgit v1.2.3