hugo/docs/content/en/methods/site/IsMultiLingual.md
2023-12-04 15:24:01 +01:00

663 B

title description categories keywords action
IsMultiLingual Reports whether the site is multilingual.
related returnType signatures
bool
SITE.IsMultiLingual

Site configuration:

{{< code-toggle file=hugo >}} defaultContentLanguage = 'de' defaultContentLanguageInSubdir = true [languages] [languages.de] languageCode = 'de-DE' languageName = 'Deutsch' title = 'Projekt Dokumentation' weight = 1 [languages.en] languageCode = 'en-US' languageName = 'English' title = 'Project Documentation' weight = 2 {{< /code-toggle >}}

Template:

{{ .Site.IsMultiLingual }} → true