Skip to content

links to rendered drafts are added to bottom page navigation when website:draft-mode: unlinked #13964

@prncevince

Description

@prncevince

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:

Image Image

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

  • OS: MacOS Sonoma 14.6.1

Quarto check output

quarto v1.9.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwebsitesIssues creating websites

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions