Hugo, draft = false
I am in the process of building this site, thought it might be a good idea to post issues and how I overcame them.
This first issue has a simple solution.
If you are having problems where your pages are showing up when running hugo server
but not when publishing them with hugo
.
Check that your pages that your pages are not draft.
Example: content/about.md
+++
title = "About"
draft = true
+++
Some about page
That page will not show up in your published site, it’s a simple fix and should have been obvious but it was not.
Set draft to false
or remove that line completely.
To easily see that something is still marked as draft. Put {{ cond .Draft " [DRAFT]" "" }}
in the title area of single.html
and list.html
.
Read other posts