Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 19:51:26 GMT
From:      Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: f4e135b800 - main - Fix the format in the 404 page
Message-ID:  <202101271951.10RJpQNf058745@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=f4e135b8007e6b769643e40527a619a80cb4b600

commit f4e135b8007e6b769643e40527a619a80cb4b600
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2021-01-27 19:50:26 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2021-01-27 19:50:26 +0000

    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.&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 }}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101271951.10RJpQNf058745>