git: ad3bb85dd0 - main - Fix copyright and contact links in the footer.

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

commit ad3bb85dd0a87f85a2c574571b0de42366d89573
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2021-02-08 21:47:38 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2021-02-08 21:47:38 +0000

    Fix copyright and contact links in the footer.
    
    PR:             253094
    Submitted by:   wosch@
---
 documentation/themes/beastie/layouts/partials/site-footer.html | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/documentation/themes/beastie/layouts/partials/site-footer.html b/documentation/themes/beastie/layouts/partials/site-footer.html
index ca4ee18ff3..8fd00dc081 100755
--- a/documentation/themes/beastie/layouts/partials/site-footer.html
+++ b/documentation/themes/beastie/layouts/partials/site-footer.html
@@ -1,9 +1,15 @@
+{{ $language := "" }}
+{{ $currentLang := $.Site.Language.Lang }}
+
+{{ if ne $currentLang "en" }}
+  {{ $language = $currentLang }}
+{{ end }}
 <footer>
-  <a href={{ "copyright/" | absLangURL }}>{{ i18n "legalNotices" }}</a>
+  <a href={{ printf "%s%s/%s" "https://www.FreeBSD.org/" $language "copyright" }}>{{ i18n "legalNotices" }}</a>
   | &copy; 1995-{{ now.Format "2006" }}
   {{ i18n "freebsdProject" }}
   {{ i18n "copyright" }}
   {{ i18n "trademark" }}
   <a href="https://www.freebsdfoundation.org/legal/trademark-usage-terms-and-conditions/">{{ i18n "freebsdFoundation" }}</a>.
-  <a href={{ "mailto/" | absLangURL }}>{{ i18n "contact" }}</a>
+  <a href={{ printf "%s%s/%s" "https://www.FreeBSD.org/" $language "mailto" }}>{{ i18n "contact" }}</a>
 </footer>
_______________________________________________
[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.