victoriadrake/hugo-theme-introduction

Drafts do not remove content from home / nav

Closed

#356 opened on Feb 5, 2023

 (2 comments) (1 reaction) (0 assignees)HTML (279 forks)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (647 stars)
PR merge metrics
 (Avg merge 4m) (1 merged PR in 30d)

Description

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!

Contributor guide