hugo/docs/content/en/methods/site/IsMultiLingual.md
2024-08-09 15:17:43 +02:00

877 B

title description categories keywords action expiryDate
IsMultiLingual Reports whether there are two or more configured languages.
related returnType signatures
bool
SITE.IsMultiLingual
2025-03-16

{{% deprecated-in 0.124.0 %}} Use hugo.IsMultilingual instead.

{{% /deprecated-in %}}

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