mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 09:57:16 -04:00
Update IsMultihost method
This commit is contained in:
parent
939281f3a1
commit
8049e77019
@ -13,7 +13,7 @@ action:
|
|||||||
|
|
||||||
{{< new-in v0.124.0 >}}
|
{{< new-in v0.124.0 >}}
|
||||||
|
|
||||||
The `hugo.IsMultihost` function reports whether each configured language has a unique `baseURL`.
|
Site configuration:
|
||||||
|
|
||||||
{{< code-toggle file=hugo >}}
|
{{< code-toggle file=hugo >}}
|
||||||
[languages]
|
[languages]
|
||||||
@ -29,6 +29,8 @@ The `hugo.IsMultihost` function reports whether each configured language has a u
|
|||||||
weight = 1
|
weight = 1
|
||||||
{{< /code-toggle >}}
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
|
Template:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ hugo.IsMultihost }} → true
|
{{ hugo.IsMultihost }} → true
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user