diff options
author | Danilo G. Baio <dbaio@FreeBSD.org> | 2021-06-19 18:56:16 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2021-06-19 19:09:00 +0000 |
commit | 3462d12db6ebf303064db168a2333374344f369a (patch) | |
tree | 0efa6987a5afdf632a5636d2163db36acd4b6ca7 /documentation/content/en/books/developers-handbook/_index.adoc | |
parent | 130b0430d42780a99b76f17f73ca6b46266cffd3 (diff) | |
download | doc-3462d12db6ebf303064db168a2333374344f369a.tar.gz doc-3462d12db6ebf303064db168a2333374344f369a.zip |
Add Hugo's lang shortcode
This is a prerequisite for the translation workflow through .po files
and Weblate.
The asciidoctor include with the shortcode variable will help because
won't be needed to change the includes manually after converting the
translation (.po file) back to .adoc.
It will help other areas like, language attributes, which today is fixed
in every document.
The use of shortcode was suggested by jmooring@ from Hugo's project on
Github.
Reviewed by: carlavilla
Differential Revision: https://reviews.freebsd.org/D30823
Diffstat (limited to 'documentation/content/en/books/developers-handbook/_index.adoc')
-rw-r--r-- | documentation/content/en/books/developers-handbook/_index.adoc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/documentation/content/en/books/developers-handbook/_index.adoc b/documentation/content/en/books/developers-handbook/_index.adoc index 43db14ab19..76e1ee2f62 100644 --- a/documentation/content/en/books/developers-handbook/_index.adoc +++ b/documentation/content/en/books/developers-handbook/_index.adoc @@ -24,27 +24,27 @@ ifeval::["{backend}" == "html5"] include::shared/mirrors.adoc[] include::shared/authors.adoc[] include::shared/releases.adoc[] -include::shared/en/mailing-lists.adoc[] -include::shared/en/teams.adoc[] -include::shared/en/urls.adoc[] +include::shared/{{% lang %}}/mailing-lists.adoc[] +include::shared/{{% lang %}}/teams.adoc[] +include::shared/{{% lang %}}/urls.adoc[] endif::[] ifeval::["{backend}" == "pdf"] include::../../../../shared/mirrors.adoc[] include::../../../../shared/authors.adoc[] include::../../../../shared/releases.adoc[] -include::../../../../shared/en/mailing-lists.adoc[] -include::../../../../shared/en/teams.adoc[] -include::../../../../shared/en/urls.adoc[] +include::../../../../shared/{{% lang %}}/mailing-lists.adoc[] +include::../../../../shared/{{% lang %}}/teams.adoc[] +include::../../../../shared/{{% lang %}}/urls.adoc[] endif::[] ifeval::["{backend}" == "epub3"] include::../../../../shared/mirrors.adoc[] include::../../../../shared/authors.adoc[] include::../../../../shared/releases.adoc[] -include::../../../../shared/en/mailing-lists.adoc[] -include::../../../../shared/en/teams.adoc[] -include::../../../../shared/en/urls.adoc[] +include::../../../../shared/{{% lang %}}/mailing-lists.adoc[] +include::../../../../shared/{{% lang %}}/teams.adoc[] +include::../../../../shared/{{% lang %}}/urls.adoc[] endif::[] [.abstract-title] |