aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2021-01-27 19:50:26 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2021-01-27 19:50:26 +0000
commitf4e135b8007e6b769643e40527a619a80cb4b600 (patch)
tree62b4c3e14904369585f1dd2e4e6d2b980ab47242
parente9743c8ea57d61c61a27b6d2316833415ae72697 (diff)
Fix the format in the 404 page
-rw-r--r--website/themes/beastie/i18n/en.toml3
-rwxr-xr-xwebsite/themes/beastie/layouts/404.html18
2 files changed, 16 insertions, 5 deletions
diff --git a/website/themes/beastie/i18n/en.toml b/website/themes/beastie/i18n/en.toml
index f3762e677d..b9e699d2a8 100644
--- a/website/themes/beastie/i18n/en.toml
+++ b/website/themes/beastie/i18n/en.toml
@@ -243,6 +243,9 @@ other = "News RSS Feed"
other = "Security Advisories and Errata Notices RSS Feed"
#404
+[pageNotFound]
+other = "Page not found."
+
[notFoundTitle]
other = "We could not find the page you requested."
diff --git a/website/themes/beastie/layouts/404.html b/website/themes/beastie/layouts/404.html
index 87b7c52ada..cc3361e7c4 100755
--- a/website/themes/beastie/layouts/404.html
+++ b/website/themes/beastie/layouts/404.html
@@ -1,7 +1,15 @@
{{ define "main" }}
-<article>
- <h2>Oh no.&nbsp;:(</h2>
- <p>{{ i18n "notFoundTitle" }}</p>
- <p>{{ i18n "notFoundDesc" }}</p>
-</article>
+<div id="content">
+ <div id="sidewrap">
+ <div id="sidenav">
+ {{ partial "sidenav.html" (dict "sidenavType" "about" "data" .Site.Data "language" $.Site.Language.Lang ) }}
+ </div>
+ </div>
+ <div id="contentwrap">
+ <h1>{{ i18n "pageNotFound" }}</h1>
+ <h2>Oh no.&nbsp;:(</h2>
+ <p>{{ i18n "notFoundTitle" }}</p>
+ <p>{{ i18n "notFoundDesc" }}</p>
+ </div>
+</div>
{{ end }}