# 站点矩阵（sites matrix）
> 控制内容为哪些站点生成的配置对象，是语言、角色与版本三个维度的交集。
- 官方英文原文：https://gohugo.io/quick-reference/glossary/sites-matrix/
- 本页规范地址：https://hugozh.cn/quick-reference/glossary/sites-matrix/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
_站点矩阵_（sites matrix）是在内容前置元数据或文件挂载中定义的配置对象，用于精确控制内容应为哪些 [_sites_](g) 生成。在文件挂载中为模板定义时，它控制该模板将应用于哪些站点。在 Hugo 的多维内容模型中，该矩阵定义了三个维度的交集：[_language_](g)、[_role_](g) 和 [_version_](g)。该配置的结构是一个由 [_glob slices_](g) 组成的映射。

另请参见 [_sites complements_](g)、[front matter: sites][]、[module mounts: sites][] 和 [segments: sites][]。

[front matter: sites]: /content-management/front-matter/#sites
[module mounts: sites]: /configuration/module/#sites
[segments: sites]: /configuration/segments/#sites

