Files
hugo/docs/content/en/_common/configuration/page-matcher.md
T
2026-05-21 12:22:49 +02:00

763 B

_comment
_comment
Do not remove front matter.

A page matcher filters pages by logical path, page kind, environment, or site. Specify filtering criteria using any combination of the following keywords.

environment
(string) A glob pattern matching the build environment. For example: {staging,production}.
kind
(string) A glob pattern matching the page kind. For example: {taxonomy,term}.
lang
{{< deprecated-in 0.153.0 />}}
Use sites instead.
path
(string) A glob pattern matching the page's logical path. For example: {/books,/books/**}.
sites
{{< new-in 0.153.0 />}}
(map) A sites matrix matching any combination of content dimensions including language, version, and role.