Date: Sun, 2 May 2021 16:54:30 GMT From: Allan Jude <allanjude@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: aa0aa34d92 - main - Improve links to "docs" and "books and articles" Message-ID: <202105021654.142GsUSJ055462@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by allanjude: URL: https://cgit.FreeBSD.org/doc/commit/?id=aa0aa34d9265094bcecbf95bc1d7eb1e5b69c3b9 commit aa0aa34d9265094bcecbf95bc1d7eb1e5b69c3b9 Author: Allan Jude <allanjude@FreeBSD.org> AuthorDate: 2021-05-02 16:26:04 +0000 Commit: Allan Jude <allanjude@FreeBSD.org> 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105021654.142GsUSJ055462>
