git: ace7a25543 - main - Fix navigation links on i18n pages

Li-Wen Hsu <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by lwhsu (ports, src committer):

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

commit ace7a25543bbe2ef76b4fbb0a67d13f731915360
Author:     Li-Wen Hsu <[email protected]>
AuthorDate: 2021-02-07 06:37:25 +0000
Commit:     Li-Wen Hsu <[email protected]>
CommitDate: 2021-02-07 06:37:25 +0000

    Fix navigation links on i18n pages
    
    PR:             253134
    Reported by:    wosch
    Approved by:    carlavilla (implicitly)
---
 .../beastie/layouts/partials/site-navigation.html  | 38 +++++++++++-----------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/documentation/themes/beastie/layouts/partials/site-navigation.html b/documentation/themes/beastie/layouts/partials/site-navigation.html
index 98f0a5eb79..08d1db8a41 100644
--- a/documentation/themes/beastie/layouts/partials/site-navigation.html
+++ b/documentation/themes/beastie/layouts/partials/site-navigation.html
@@ -13,35 +13,35 @@
     {{ end }}
 
     <li>
-      <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "about" }}>{{ i18n "about" }}</a>
+      <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "about" }}>{{ i18n "about" }}</a>
       <ul>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "projects/newbies/" }}>{{ i18n "introduction" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "projects/newbies/" }}>{{ i18n "introduction" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "features" }}>{{ i18n "features" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "features" }}>{{ i18n "features" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "advocacy" }}>{{ i18n "advocacy" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "advocacy" }}>{{ i18n "advocacy" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "marketing" }}>{{ i18n "marketing" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "marketing" }}>{{ i18n "marketing" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "privacy" }}>{{ i18n "privacyPolicy" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "privacy" }}>{{ i18n "privacyPolicy" }}</a>
         </li>
       </ul>
     </li>
   </ul>
   <ul>
     <li>
-      <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "where" }}>{{ i18n "getFreeBSD" }}</a>
+      <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "where" }}>{{ i18n "getFreeBSD" }}</a>
       <ul>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "releases" }}>{{ i18n "releaseInformation" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "releases" }}>{{ i18n "releaseInformation" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "releng" }}>{{ i18n "releaseEngineering" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "releng" }}>{{ i18n "releaseEngineering" }}</a>
         </li>
       </ul>
     </li>
@@ -76,19 +76,19 @@
   </ul>
   <ul>
     <li>
-      <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "community" }}>{{ i18n "community" }}</a>
+      <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "community" }}>{{ i18n "community" }}</a>
       <ul>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "community/mailinglists/" }}>{{ i18n "mailingLists" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "community/mailinglists/" }}>{{ i18n "mailingLists" }}</a>
         </li>
         <li>
           <a href="https://forums.FreeBSD.org">{{ i18n "forums" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "usergroups" }}>{{ i18n "userGroups" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "usergroups" }}>{{ i18n "userGroups" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "events" }}>{{ i18n "events" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "events" }}>{{ i18n "events" }}</a>
         </li>
         <li>
           <a href="http://freebsdjournal.com">{{ i18n "FreeBSDJournal" }}</a>
@@ -101,7 +101,7 @@
   </ul>
   <ul>
     <li>
-      <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "projects" }}>{{ i18n "developers" }}</a>
+      <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "projects" }}>{{ i18n "developers" }}</a>
       <ul>
         <li>
           <a href="https://wiki.FreeBSD.org/IdeasPage">{{ i18n "projectIdeas" }}</a>
@@ -129,19 +129,19 @@
   </ul>
   <ul>
     <li>
-      <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "support" }}>{{ i18n "support" }}</a>
+      <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "support" }}>{{ i18n "support" }}</a>
       <ul>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "commercial" }}>{{ i18n "vendors" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "commercial" }}>{{ i18n "vendors" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "security" }}>{{ i18n "securityInformation" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "security" }}>{{ i18n "securityInformation" }}</a>
         </li>
         <li>
           <a href="https://bugs.FreeBSD.org/search/">{{ i18n "bugReports" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "support" }}>{{ i18n "submittingBugReports" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "support" }}>{{ i18n "submittingBugReports" }}</a>
         </li>
       </ul>
     </li>
@@ -154,7 +154,7 @@
           <a href="https://www.freebsdfoundation.org/donate/">{{ i18n "monetaryDonations" }}</a>
         </li>
         <li>
-          <a href={{ printf "%s%s%s" $.Site.Params.websiteURL $language "donations/#systems/" }}>{{ i18n "hardwareDonations" }}</a>
+          <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "donations/#systems/" }}>{{ i18n "hardwareDonations" }}</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.