Hugo v0.123.0: Path prefix introduced

This works in Hugo v0.122.0:

{{- $pages = where (where .Site.Pages "Section" "post") "Path" "!=" "post" -}}

The same for Hugo v0.123.0:

{{- $pages = where (where .Site.Pages "Section" "post") "Path" "!=" "/post" -}}

The idea is to get all pages except the root section, notice that now (v0.123.0) the leading slash is needed.

Since I’m not sure if this should considered to be a bug I’ll post it here, no further help is needed.

This is not a bug. See examples:

https://gohugo.io/methods/page/path/#monolingual-site

Thanks for clarifying.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.