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.
set the directory to ignoreFiles
One other options is to put
draft=true in the section
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.