victoriadrake/hugo-theme-introduction

Drafts do not remove content from home / nav

クローズ

#356 opened on 2023/02/05

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)HTML (279 件のフォーク)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (647 個のスター)
PR merge metrics
 (平均マージ 4m) (30d で 1 merged PR)

説明

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!

コントリビューターガイド