I have:
Bug description
Draft html documents are added to the page navigation when website:draft-mode is set to unlinked.
2nd screenshot below shows hovered link to the linked rendered draft.
Also see repro:
Steps to reproduce
Creating a blank blog, then adding to the following configuration to _quarto.yml can reproduce this:
draft-mode: unlinked, page-navigation: true, a sidebar containing blog posts & 1 draft.
e.g.
Run: quarto create project blog ., copy 1 blog post to new directory under posts & set draft: true in yaml, then edit _quarto.yml to the following:
project:
type: website
website:
title: "Demo"
navbar:
right:
- about.qmd
- icon: github
href: https://github.com/
- icon: twitter
href: https://twitter.com
draft-mode: unlinked
sidebar:
contents:
- section: Blog
contents: posts/*/*
page-navigation: true
format:
html:
theme: cosmo
css: styles.css
Actual behavior
Rendered drafts are linked in the page navigation. Config option website:draft-mode:unlinked should remove them.
Expected behavior
When draft: true for html documents in a website, the rendered draft should not be added to the page navigation.
Your environment
Quarto check output
quarto v1.9.17
I have:
Bug description
Draft html documents are added to the page navigation when
website:draft-modeis set tounlinked.2nd screenshot below shows hovered link to the linked rendered draft.
Also see repro:
And deployed website with issue. See link at bottom on blog post:
Steps to reproduce
Creating a blank blog, then adding to the following configuration to
_quarto.ymlcan reproduce this:draft-mode: unlinked,page-navigation: true, a sidebar containing blog posts & 1 draft.e.g.
Run:
quarto create project blog ., copy 1 blog post to new directory underposts& setdraft: truein yaml, then edit_quarto.ymlto the following:Actual behavior
Rendered drafts are linked in the page navigation. Config option
website:draft-mode:unlinkedshould remove them.Expected behavior
When
draft: truefor html documents in a website, the rendered draft should not be added to the page navigation.Your environment
Quarto check output
quarto v1.9.17