1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-05-12 15:36:02 +02:00

Use i18n to translate some strings

Hugo 0.17 allows for easy multi-lingual sites. Strings can be
translated either in the theme or in the site, and missing strings
will fall back to the default language.

See: https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md
This commit is contained in:
2016-10-03 22:57:27 +03:00
parent d098836949
commit 577e168da5
5 changed files with 19 additions and 5 deletions

View File

@ -8,7 +8,7 @@
{{ .Content }}
{{ if .IsTranslated }}
<h4>Translations</h4>
<h4>{{ i18n "translations" }}</h4>
<ul>
{{ range .Translations }}
<li>