From f4e135b8007e6b769643e40527a619a80cb4b600 Mon Sep 17 00:00:00 2001 From: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> Date: Wed, 27 Jan 2021 20:50:26 +0100 Subject: [PATCH] Fix the format in the 404 page --- website/themes/beastie/i18n/en.toml | 3 +++ website/themes/beastie/layouts/404.html | 18 +++++++++++++----- 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. :(</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. :(</h2> + <p>{{ i18n "notFoundTitle" }}</p> + <p>{{ i18n "notFoundDesc" }}</p> + </div> +</div> {{ end }}