Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2021 08:24:14 GMT
From:      Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: c639301c3a - main - Fix html lang, add canonical link and add theme-color meta tag
Message-ID:  <202105020824.1428OEgl079220@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=c639301c3a5f0176c2d57c0b72fe7701ee5120da

commit c639301c3a5f0176c2d57c0b72fe7701ee5120da
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2021-05-02 08:21:06 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2021-05-02 08:21:06 +0000

    Fix html lang, add canonical link and add theme-color meta tag
---
 documentation/themes/beastie/layouts/_default/baseof.html    |  2 +-
 documentation/themes/beastie/layouts/articles/baseof.html    |  5 ++---
 documentation/themes/beastie/layouts/books/baseof.html       |  5 ++---
 documentation/themes/beastie/layouts/partials/site-head.html | 12 ++++++++++++
 4 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/documentation/themes/beastie/layouts/_default/baseof.html b/documentation/themes/beastie/layouts/_default/baseof.html
index 46d88a99a9..2e4abf1ff6 100644
--- a/documentation/themes/beastie/layouts/_default/baseof.html
+++ b/documentation/themes/beastie/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="{{ $.Site.LanguageCode | default "en" }}">
+<html lang="{{ $.Site.Language.Lang | default "en" }}">
   {{ partial "site-head.html" . }}
   <body>
     <div id="container">
diff --git a/documentation/themes/beastie/layouts/articles/baseof.html b/documentation/themes/beastie/layouts/articles/baseof.html
index f0dc57dcc3..b8be735562 100644
--- a/documentation/themes/beastie/layouts/articles/baseof.html
+++ b/documentation/themes/beastie/layouts/articles/baseof.html
@@ -1,13 +1,12 @@
 <!DOCTYPE html>
-<html lang="{{ $.Site.LanguageCode | default "en" }}">
+<html lang="{{ $.Site.Language.Lang | default "en" }}">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="description" content="{{ if .Params.Description }}{{ .Params.Description }}{{ end }}" />
-
     <meta name="keywords" content="FreeBSD, BSD, UNIX, open source" />
-
     <meta name="copyright" content="1995-2021 The FreeBSD Foundation">
+    <link rel="canonical" href="{{ .Permalink }}" />
 
     <title>{{ block "title" . }}{{ with .Params.Title }} {{ . }}{{ end }}{{ end }}</title>
 
diff --git a/documentation/themes/beastie/layouts/books/baseof.html b/documentation/themes/beastie/layouts/books/baseof.html
index f0dc57dcc3..b8be735562 100644
--- a/documentation/themes/beastie/layouts/books/baseof.html
+++ b/documentation/themes/beastie/layouts/books/baseof.html
@@ -1,13 +1,12 @@
 <!DOCTYPE html>
-<html lang="{{ $.Site.LanguageCode | default "en" }}">
+<html lang="{{ $.Site.Language.Lang | default "en" }}">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="description" content="{{ if .Params.Description }}{{ .Params.Description }}{{ end }}" />
-
     <meta name="keywords" content="FreeBSD, BSD, UNIX, open source" />
-
     <meta name="copyright" content="1995-2021 The FreeBSD Foundation">
+    <link rel="canonical" href="{{ .Permalink }}" />
 
     <title>{{ block "title" . }}{{ with .Params.Title }} {{ . }}{{ end }}{{ end }}</title>
 
diff --git a/documentation/themes/beastie/layouts/partials/site-head.html b/documentation/themes/beastie/layouts/partials/site-head.html
index 5242f76004..5a9485afee 100644
--- a/documentation/themes/beastie/layouts/partials/site-head.html
+++ b/documentation/themes/beastie/layouts/partials/site-head.html
@@ -4,11 +4,23 @@
   <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}"/>
   <meta name="keywords" content="FreeBSD, FreeBSD Documentation Portal, BSD, UNIX, open source" />
   <meta name="copyright" content="1995-2021 The FreeBSD Foundation">
+  <link rel="canonical" href="{{ .Permalink }}" />
 
   <title>{{ block "title" . }}{{ .Site.Title }}{{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
 
+  <!-- FAVICON -->
   <link rel="shortcut icon" href="{{ absLangURL ($.Site.BaseURL) }}favicon.ico">
 
+
+  <meta name="theme-color" content="#790000">
+  <!-- END FAVICON -->
+
+
   <link rel="stylesheet" href="{{ absLangURL ($.Site.BaseURL) }}css/fixed.css">
 
+  <!-- SEO -->
+
+
+  <!-- END SEO -->
+
 </head>



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