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:
@ -8,7 +8,7 @@
|
||||
{{ .Content }}
|
||||
|
||||
{{ if .IsTranslated }}
|
||||
<h4>Translations</h4>
|
||||
<h4>{{ i18n "translations" }}</h4>
|
||||
<ul>
|
||||
{{ range .Translations }}
|
||||
<li>
|
||||
|
Reference in New Issue
Block a user