Skip to content

Tried to clarify segment filters in documentation. Made example not use deprecated matchers.#3421

Open
xax wants to merge 5 commits intogohugoio:masterfrom
xax:patch-1
Open

Tried to clarify segment filters in documentation. Made example not use deprecated matchers.#3421
xax wants to merge 5 commits intogohugoio:masterfrom
xax:patch-1

Conversation

@xax
Copy link
Copy Markdown
Contributor

@xax xax commented Mar 3, 2026

Tried to improve clarity of segment definition and filters. Made example not use deprecated matchers and use shorter glob pattern.

xax added 2 commits March 3, 2026 19:16
…se deprecated matchers.

Tried to improve clarity of segment definition and filters. Made example not use deprecated matchers and use shorter glob pattern.
@jmooring
Copy link
Copy Markdown
Member

jmooring commented Mar 4, 2026

Thanks for this. Some of what you provided isn't quite right, and surfaced a bug while testing. I will keep this open for a while, and will likely replace it with a separate PR once we've addressed the underlying issue. This was a useful exercise.

@xax
Copy link
Copy Markdown
Contributor Author

xax commented Mar 16, 2026

Updated guessing correct usage in analogy to documentation regarding content management » front matter :: Target.

sites
: {{< new-in 0.153.0 />}}
: (`map`) A map to define [sites matrix](g).

is an "difficult" explanation, I think, as while sites being technically a map (in this understanding), that map does hold nothing but the "matrix" map, which is the map defining the "matrix" axes. A lot of boilerplate to write – but granted: it is consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants