# hugo.IsMultihost
> 报告每个已配置的语言是否拥有各自独立的 base URL。
- 官方英文原文：https://gohugo.io/functions/hugo/ismultihost/
- 本页规范地址：https://hugozh.cn/functions/hugo/ismultihost/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 签名：hugo.IsMultihost
- 返回类型：bool
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
## 用法

项目配置：

```toml
defaultContentLanguage = 'de'
defaultContentLanguageInSubdir = true
[languages]
  [languages.de]
    baseURL = 'https://de.example.org/'
    label = 'Deutsch'
    locale = 'de-DE'
    title = 'Projekt Dokumentation'
    weight = 1
  [languages.en]
    baseURL = 'https://en.example.org/'
    label = 'English'
    locale = 'en-US'
    title = 'Project Documentation'
    weight = 2
```

模板：

```go-html-template
{{ hugo.IsMultihost }} → true
```

