You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
I think this is a valid bug. It seems the GetPage function doesn’t account for the page at the given path being in draft status, so the logic that controls whether these sections on the home page are shown isn’t correctly executed.
It appears the current behavior goes against user expectations. We should find another option for the logic to display these sections that respects draft status.
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):
Additional context
I'm new to Hugo, so it is entirely possible that I am misunderstanding the purpose of the 'draft' parameter!
The text was updated successfully, but these errors were encountered: