From owner-dev-commits-doc-all@freebsd.org Wed Jan 27 19:51:26 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E746A4E7B41 for ; Wed, 27 Jan 2021 19:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DQvPB6Dn1z3Grh; Wed, 27 Jan 2021 19:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C8CB42281E; Wed, 27 Jan 2021 19:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 10RJpQ4K058746; Wed, 27 Jan 2021 19:51:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 10RJpQNf058745; Wed, 27 Jan 2021 19:51:26 GMT (envelope-from git) Date: Wed, 27 Jan 2021 19:51:26 GMT Message-Id: <202101271951.10RJpQNf058745@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Sergio Carlavilla Delgado Subject: git: f4e135b800 - main - Fix the format in the 404 page MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: carlavilla X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4e135b8007e6b769643e40527a619a80cb4b600 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2021 19:51:27 -0000 The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=f4e135b8007e6b769643e40527a619a80cb4b600 commit f4e135b8007e6b769643e40527a619a80cb4b600 Author: Sergio Carlavilla Delgado AuthorDate: 2021-01-27 19:50:26 +0000 Commit: Sergio Carlavilla Delgado 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" }} -
-

Oh no. :(

-

{{ i18n "notFoundTitle" }}

-

{{ i18n "notFoundDesc" }}

-
+
+
+
+ {{ partial "sidenav.html" (dict "sidenavType" "about" "data" .Site.Data "language" $.Site.Language.Lang ) }} +
+
+
+

{{ i18n "pageNotFound" }}

+

Oh no. :(

+

{{ i18n "notFoundTitle" }}

+

{{ i18n "notFoundDesc" }}

+
+
{{ end }}