Skip to content

Drafts do not remove content from home / nav #356

@dmadison

Description

@dmadison

Describe the bug
Setting draft: true on any home sections (e.g. home/about.md, home/contact.md, etc.) will remove the content from the page but not the section itself or its entry in the nav.

To Reproduce
Set the front matter 'draft' value of any home section markdown file to 'true'.

Expected behavior
Setting a page to 'draft' should remove both the section and the nav entry from the site.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version: 109.0.5414.120

Additional context
I'm new to Hugo, so it is entirely possible that I am misunderstanding the purpose of the 'draft' parameter!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions