When run “hugo server -D”, the post is display on http://localhost:1313. But the post is not export into public after run command “hugo”.
Hi there,
The -D
flag in hugo server -D
builds pages that have draft: true
set. Have you checked that the posts that are missing when running only hugo
are draft: false
?
1 Like
You are right. It is because the “draft: true” is set. After changing it to “draft: false” the post shows. Thanks.