diff --git a/content/en/functions/hugo/IsMultihost.md b/content/en/functions/hugo/IsMultihost.md new file mode 100644 index 000000000..454d11657 --- /dev/null +++ b/content/en/functions/hugo/IsMultihost.md @@ -0,0 +1,33 @@ +--- +title: hugo.IsMultihost +description: Reports whether each configured language has a unique base URL. +categories: [] +keywords: [] +action: + aliases: [] + related: [] + returnType: bool + signatures: [hugo.IsMultihost] +--- + +{{< new-in v0.123.8 >}} + +The `hugo.IsMultihost` function reports whether each configured language has a unique `baseURL`. + +{{< code-toggle file=hugo >}} +[languages] + [languages.en] + baseURL = 'https://en.example.org/' + languageName = 'English' + title = 'In English' + weight = 2 + [languages.fr] + baseURL = 'https://fr.example.fr' + languageName = 'Français' + title = 'En Français' + weight = 1 +{{< /code-toggle >}} + +```go-html-template +{{ hugo.IsMultihost }} → true +```