mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 08:17:09 +00:00
1 file changed
+1
-1
@@ -188,7 +188,7 @@ To create a list of links to translated content, use a template similar to the f
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
The above can be put in a `partial` (i.e., inside `layouts/partials/`) and included in any template, be it for a [single content page][contenttemplate] or the [homepage][]. It will not print anything if there are no translations for a given page, or if there are translations---in the case of the homepage, section listing, etc.---a site with only render one language.
|
The above can be put in a `partial` (i.e., inside `layouts/partials/`) and included in any template, be it for a [single content page][contenttemplate] or the [homepage][]. It will not print anything if there are no translations for a given page.
|
||||||
|
|
||||||
The above also uses the [`i18n` function][i18func] described in the next section.
|
The above also uses the [`i18n` function][i18func] described in the next section.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user