Local live server works well, but not post generated

Comamnds to reproduce the bug:

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/mismith0227/hugo_theme_pickles themes/pickles;
echo 'theme = "pickles"' >> config.toml
hugo new posts/my-first-post.md
hugo server -D 

Now it works well in the local live server.

But when I generate the static files with hugo, the newly created article my-first-post disapeared!

This is very confused for beginners like me.

I assume you have draft: true in the Front Matter of that post. Please check.

The reason why it’s working with Server: You start the server with -D which means “show drafts”.

Great appreciate to you.

This solved my problem.

I don’t think it’s a good idea to use -D in the quickstart, which makes beginers very confused.

Fine. If you want to learn Hugo in a bit deeper level I recommend the videos from Mike Dane: https://www.youtube.com/playlist?list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3

He’ll guide you through the most important Hugo features.