mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 22:14:58 +00:00
40 lines
816 B
Markdown
40 lines
816 B
Markdown
---
|
|
title: hugo.IsMultihost
|
|
description: Reports whether each configured language has a unique base URL.
|
|
categories: []
|
|
keywords: []
|
|
params:
|
|
functions_and_methods:
|
|
aliases: []
|
|
returnType: bool
|
|
signatures: [hugo.IsMultihost]
|
|
---
|
|
|
|
{{< new-in 0.124.0 />}}
|
|
|
|
Site configuration:
|
|
|
|
{{< code-toggle file=hugo >}}
|
|
defaultContentLanguage = 'de'
|
|
defaultContentLanguageInSubdir = true
|
|
[languages]
|
|
[languages.de]
|
|
baseURL = 'https://de.example.org/'
|
|
languageCode = 'de-DE'
|
|
languageName = 'Deutsch'
|
|
title = 'Projekt Dokumentation'
|
|
weight = 1
|
|
[languages.en]
|
|
baseURL = 'https://en.example.org/'
|
|
languageCode = 'en-US'
|
|
languageName = 'English'
|
|
title = 'Project Documentation'
|
|
weight = 2
|
|
{{< /code-toggle >}}
|
|
|
|
Template:
|
|
|
|
```go-html-template
|
|
{{ hugo.IsMultihost }} → true
|
|
```
|