mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 09:14:45 -04:00
Document hugo.IsMultihost
This commit is contained in:
parent
c8ef1da978
commit
ff0bedd973
33
content/en/functions/hugo/IsMultihost.md
Normal file
33
content/en/functions/hugo/IsMultihost.md
Normal file
@ -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
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user