victoriadrake/hugo-theme-introduction

Drafts do not remove content from home / nav

Chiusa

#356 aperta il 5 feb 2023

 (2 commenti) (1 reazione) (0 assegnatari)HTML (279 fork)batch import
buggood first issuehelp wanted

Metriche repository

Star
 (647 stelle)
Metriche merge PR
 (Merge medio 4m) (1 PR mergiata in 30 g)

Descrizione

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!

Guida contributor