victoriadrake/hugo-theme-introduction

Drafts do not remove content from home / nav

Geschlossen

#356 geöffnet am 05.02.2023

 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)HTML (279 Forks)batch import
buggood first issuehelp wanted

Repository-Metriken

Stars
 (647 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4m) (1 gemergte PR in 30 T)

Beschreibung

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