Back to Hugo

Page Matcher

docs/content/en/_common/configuration/page-matcher.md

0.162.1715 B
Original Source

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.