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

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

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

commit f4e135b8007e6b769643e40527a619a80cb4b600
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2021-01-27 19:50:26 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
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 }}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.