Is there a way to Unpublish the whole collection? lets say you want to hide blog section make it unpublish
Ive tried adding draft true to the _index.md of blog,
i thought it wont build posts inside blog directory but it still build it…
any solution to my question?
Use build options: https://gohugo.io/content-management/build-options/ and cascade to the children pages.
2 Likes
ju52
3
set the directory to ignoreFiles
1 Like
bep
4
One other options is to put draft=true
in the section cascade
.
2 Likes
system
Closed
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.