If you change defaultContentLanguageInSubdir
to true
, when visiting the German language site:
{{ .Site.LanguagePrefix }} → /de
Lang
(string
) The language tag as defined by RFC 5646.
{{ .Site.Language.Lang }} → de
The functions are similar, but there are some differences. We hope to explain different usage scenarios in the document.
If possible, the form of table comparison should be clearer.