dgrigg / hugo-lunr

Node module for creating lunr.js search indexes for static Hugo sites
71 stars 18 forks source link

Option to include/exclude draft content #7

Open kamar535 opened 7 years ago

kamar535 commented 7 years ago

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.