How to fix 'hugo serve' not showing drafts
Problem
When running
hugo serve
you see all normal content but draft posts or pages are not shown at all
Solution
You need to run hugo serve
with the --buildDrafts
, or -D
flag:
hugo serve -D
Now, refresh the page in the browser and you should see your drafts as well as your normal posts
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow