I’m asking because, hugo has a flag -D, --buildDrafts, which can be used to show drafts in your lists and as single pages, but which if left off, will serve to cause hugo to hide those. If you build using that, yes, drafts will be included.
You can also store that as true in your config file, which means hugo will always show/build drafts.
I’m building my site in R studio by pushing comments to github.
Additionally, and now that you ask I think this could be the problem, I’m previewing my site using “server site” and I’m guessing that when I do that for drafts, it is building a draft and storing it in the public folder.
Therefore, I’ve added public to gitignore in the hopes that it will stop building pages which are defined as drafts.