git: f4e135b800 - main - Fix the format in the 404 page

Sergio Carlavilla Delgado carlavilla at FreeBSD.org
Wed Jan 27 19:51:27 UTC 2021


The branch main has been updated by carlavilla:

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

commit f4e135b8007e6b769643e40527a619a80cb4b600
Author:     Sergio Carlavilla Delgado <carlavilla at FreeBSD.org>
AuthorDate: 2021-01-27 19:50:26 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla at 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. :(</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 }}


More information about the dev-commits-doc-all mailing list