-
Notifications
You must be signed in to change notification settings - Fork 403
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
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:
- https://github.com/prncevince/test-quarto-draft-mode-page-navigation
And deployed website with issue. See link at bottom on blog post: - https://prncevince.github.io/test-quarto-draft-mode-page-navigation/posts/post-with-code/
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.cssActual 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
- OS: MacOS Sonoma 14.6.1
Quarto check output
quarto v1.9.17