For deployment I use hugo without the -D draft flag. As far as I can tell draft content is excluded from the index. While developing a site I often mark content with draft: true in the front matter and run hugo -D server on my local machine. It would be nice if there was an option to include draft content in the search index.
For deployment I use
hugo
without the-D
draft flag. As far as I can tell draft content is excluded from the index. While developing a site I often mark content withdraft: true
in the front matter and runhugo -D server
on my local machine. It would be nice if there was an option to include draft content in the search index.