git: c639301c3a - main - Fix html lang, add canonical link and add theme-color meta tag

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=c639301c3a5f0176c2d57c0b72fe7701ee5120da

commit c639301c3a5f0176c2d57c0b72fe7701ee5120da
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2021-05-02 08:21:06 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
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>
_______________________________________________
[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.