Back to Hugo

sites matrix

docs/content/en/quick-reference/glossary/sites-matrix.md

0.161.1690 B
Original Source

A sites matrix is a configuration object defined in content front matter or a file mount to precisely control which sites the content should be generated for. When defined in a file mount for templates, it controls which sites the template will be applied to. In Hugo multidimensional content model, the matrix defines the intersection of three dimensions: language, role, and version. The configuration is structured as a map of glob slices.

See also sites complements, front matter: sites, module mounts: sites, and segments: sites.