Hello,
I’m trying to serve different versions of my page distinguished by environment. One specific environment is supposed to have fewer posts in it.
On Hugo 0.152 and older I had this in the front matter of specific posts I didn’t want to appear in the “pubweb” environment:
[[cascade]]
[cascade.target]
environment = "pubweb"
[cascade.build]
list = "never"
render = "never"
publishResources = false
and build it like this:
hugo -e "pubweb" -d "dest-pubweb"
and that worked.
Starting with Hugo 0.153.0 (also tested in 0.156.0 and v0.157.0) that doesn’t work any more, it will render this post anyway.
I’ve read the changelog for 0.153.0 but didn’t really find anything related to this. Version 0.153.4 had some fix with cascade, but as it doesn’t work in 0.157.0 either it doesn’t seem to be related.
Can someone tell me if I missed any changes related to cascade and targets?
I’ve seen different approaches to this goal by using path instead of environment, but as all the posts in question are inside the same directory that doesn’t work here.