git: aa0aa34d92 - main - Improve links to "docs" and "books and articles"

Allan Jude <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by allanjude:

URL: https://cgit.FreeBSD.org/doc/commit/?id=aa0aa34d9265094bcecbf95bc1d7eb1e5b69c3b9

commit aa0aa34d9265094bcecbf95bc1d7eb1e5b69c3b9
Author:     Allan Jude <[email protected]>
AuthorDate: 2021-05-02 16:26:04 +0000
Commit:     Allan Jude <[email protected]>
CommitDate: 2021-05-02 16:53:24 +0000

    Improve links to "docs" and "books and articles"
    
    Some of the links went to empty pages, or only to books, no articles
    
    Reported-By:    des
    Sponsored-By:   Klara Inc.
---
 website/themes/beastie/layouts/partials/sidenav.html         | 4 ++--
 website/themes/beastie/layouts/partials/site-navigation.html | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/website/themes/beastie/layouts/partials/sidenav.html b/website/themes/beastie/layouts/partials/sidenav.html
index d3f1f9d29b..1f7e35a340 100644
--- a/website/themes/beastie/layouts/partials/sidenav.html
+++ b/website/themes/beastie/layouts/partials/sidenav.html
@@ -43,12 +43,12 @@
 </ul>
 {{ else if eq .sidenavType "docs" }}
 <ul>
-  <li><a href={{ "docs" | absLangURL }}>{{ i18n "documentation" }}</a></li>
+  <li><a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/" }}>{{ i18n "documentation" }}</a></li>
   <li><a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/books/faq/" }}>{{ i18n "FAQ" }}</a></li>
   <li><a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/books/handbook/" }}>{{ i18n "handbook" }}</a></li>
   <li><a href="https://man.FreeBSD.org">{{ i18n "man" }}</a></li>
   <li><a href="https://papers.freebsd.org/">{{ i18n "papers" }}</a></li>
-  <li><a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/books/" }}>{{ i18n "booksArticles" }}</a></li>
+  <li><a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/" }}>{{ i18n "booksArticles" }}</a></li>
   <li><a href={{ "publish" | absLangURL }}>{{ i18n "publications" }}</a></li>
   <li><a href={{ "docs/webresources/" | absLangURL }}>{{ i18n "webresources" }}</a></li>
   <li><a href={{ "projects/newbies/" | absLangURL }}>{{ i18n "newbies" }}</a></li>
diff --git a/website/themes/beastie/layouts/partials/site-navigation.html b/website/themes/beastie/layouts/partials/site-navigation.html
index 7d5ad7f62e..2f790d646b 100644
--- a/website/themes/beastie/layouts/partials/site-navigation.html
+++ b/website/themes/beastie/layouts/partials/site-navigation.html
@@ -42,7 +42,7 @@
   </ul>
   <ul>
     <li>
-      <a href={{ "docs/" | absLangURL }}>{{ i18n "documentation" }}</a>
+      <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/" }}>{{ i18n "documentation" }}</a>
       <ul>
         <li>
           <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/books/faq/" }}>{{ i18n "faq" }}</a>
@@ -69,7 +69,7 @@
           <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/books/fdp-primer/" }}>{{ i18n "documentationProjectPrimer" }}</a>
         </li>
         <li>
-          <a href={{ "docs/" | absLangURL }}>{{ i18n "allBooksArticles" }}</a>
+          <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/" }}>{{ i18n "allBooksArticles" }}</a>
         </li>
       </ul>
     </li>
_______________________________________________
[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.