Date: Tue, 26 Jan 2021 12:06:36 GMT From: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 4dba695e5d - main - Use Hugo's relLangURL filter to fix relative URLs in list shortdocs Message-ID: <202101261206.10QC6awJ069496@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=4dba695e5d4bca99d1d409c867aa85e2953e7aa2 commit 4dba695e5d4bca99d1d409c867aa85e2953e7aa2 Author: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> AuthorDate: 2021-01-26 12:02:54 +0000 Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> CommitDate: 2021-01-26 12:02:54 +0000 Use Hugo's relLangURL filter to fix relative URLs in list shortdocs Submitted by: allanjude@ PR: 253013 Review: https://reviews.freebsd.org/D28344 --- .../themes/beastie/layouts/shortcodes/list-articles-directories.html | 2 +- .../themes/beastie/layouts/shortcodes/list-books-directories.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html b/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html index 3d9244153a..c772b38e0d 100644 --- a/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html +++ b/documentation/themes/beastie/layouts/shortcodes/list-articles-directories.html @@ -14,7 +14,7 @@ {{ if in .path "_index.adoc" }} {{ $articlePath := replaceRE "/_index.adoc" "" .path }} {{ $articleName := replaceRE "articles/" "" $articlePath }} - <li><a href="{{ $articlePath }}">{{ $articleName }}</a></li> + <li><a href="{{ $articlePath | relLangURL }}">{{ $articleName }}</a></li> {{ end }} {{ end }} </ul> diff --git a/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html b/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html index dbdbd3a2ea..d1eda384d5 100644 --- a/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html +++ b/documentation/themes/beastie/layouts/shortcodes/list-books-directories.html @@ -14,7 +14,7 @@ {{ if in .path "_index.adoc" }} {{ $bookPath := replaceRE "/_index.adoc" "" .path }} {{ $bookName := replaceRE "books/" "" $bookPath }} - <li><a href="{{ $bookPath }}">{{ $bookName }}</a></li> + <li><a href="{{ $bookPath | relLangURL }}">{{ $bookName }}</a></li> {{ end }} {{ end }} </ul>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101261206.10QC6awJ069496>