git: de4df6356c - main - HTML copyright meta tag: Generate copyright year automatically

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

commit de4df6356c51c29ca6ae9cd31d4fed3b1627aaa4
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2023-08-04 18:09:20 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-08-04 18:10:10 +0000

    HTML copyright meta tag: Generate copyright year automatically
---
 documentation/themes/beastie/layouts/partials/site-head.html | 2 +-
 website/themes/beastie/layouts/partials/site-head.html       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/documentation/themes/beastie/layouts/partials/site-head.html b/documentation/themes/beastie/layouts/partials/site-head.html
index 24d52f53fa..1031387406 100644
--- a/documentation/themes/beastie/layouts/partials/site-head.html
+++ b/documentation/themes/beastie/layouts/partials/site-head.html
@@ -3,7 +3,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}"/>
   <meta name="keywords" content="{{ with .Params.tags -}}{{ delimit . ", "}}{{- end }}"/>
-  <meta name="copyright" content="1995-2021 The FreeBSD Foundation">
+  <meta name="copyright" content="1995-{{ now.Format "2006" }} The FreeBSD Foundation" />
   <link rel="canonical" href="{{ .Permalink }}" />
 
   <title>{{ with .Params.Title }}{{ . }} | {{ end }} {{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
diff --git a/website/themes/beastie/layouts/partials/site-head.html b/website/themes/beastie/layouts/partials/site-head.html
index 104f633b13..dce8175421 100644
--- a/website/themes/beastie/layouts/partials/site-head.html
+++ b/website/themes/beastie/layouts/partials/site-head.html
@@ -3,7 +3,7 @@
   <meta name="description" content="FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms." />
   <meta name="keywords" content="FreeBSD, BSD, UNIX, open source" />
 
-  <meta name="copyright" content="1995-2021 The FreeBSD Foundation">
+  <meta name="copyright" content="1995-{{ now.Format "2006" }} The FreeBSD Foundation" />
 
   <title>{{ with .Params.Title }}{{ . }} | {{ end }} {{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
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.