Skip to content

breadcrumbs only appear if title set in topmatter #10567

Closed

Description

@machow

Bug description

The docs on breadcrumbs mention they will be displayed by default. It appears that when title: is not set in the top-matter, then they are not displayed.

Note that in this issue I'll refer to three possible meanings of title:

  1. _quarto.yml sidebar text: title
  2. qmd topmatter title
  3. qmd header title

Currently, quarto requires (2) to be set. When this happens, (1) gets shown if set. Otherwise, (2) gets shown.

Steps to reproduce

_quarto.qmd

project:
  type: website

website:
  sidebar:
    - contents:
      - section: "Tutorials"
        contents:
          - text: Tutorial sidebar title
            href: tutorials.qmd

tutorial.qmd

---
# uncomment below to see breadcrumbs say "Tutorial sidebar title"
# title: Tutorial topmatter title
---

# Tutorial qmd first header

abc

Expected behavior

breacrumb for tutorial page should say "Tutorial sidebar title".

Actual behavior

No breadcrumb shown

Your environment

mac osx

Quarto check output

Quarto 1.5.56
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.56
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.5
      Path: /Users/machow/.pyenv/versions/3.9.5/bin/python3
      Jupyter: 5.3.1
      Kernels: <removed>

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.1.2
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library
      knitr: 1.39
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK

Activity

  1. added
    bug
    on Aug 20, 2024
  2. self-assigned this
    on Aug 21, 2024
  3. added this to the v1.6 milestone on Aug 21, 2024
  4. cscheid commented on Aug 21, 2024

    @cscheid
    Member

    Thanks. We've had similar bugs in the past, so this tracks.

    Can you just confirm to me that you're not using both title: and a Header of level 1? It's not perfectly clear from your tutorial.qmd.

  5. added
    websites
    html
    on Aug 21, 2024
  6. machow commented on Aug 22, 2024

    @machow
    Author

    The example uses both, but I think the bug is that the breadcrumb only works if title: is set. quartodoc unfortunately sets title via the h1 header (#), but I'm guessing that will need to change as a separate quartodoc issue 😭

  7. mcanouil commented on Aug 22, 2024

    @mcanouil
    Collaborator

    @machow As a side note, I think quartodoc should set title as it is safer and more reliable in Quarto. h1 are no title by default. Quarto promotes the first header to title in some conditions/context.

  8. machow commented on Aug 26, 2024

    @machow
    Author

    That makes sense, and I'll switch it over!

  9. cscheid commented on Oct 28, 2024

    @cscheid
    Member

    Quarto's HTML is itself not identical depending on whether the title is specified on title: vs on an H1 header. That's a Quarto bug by itself, and it seems to be the cause of this bug.

  10. added a commit that references this issue on Dec 6, 2024
  11. added a commit that references this issue on Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

booksbughtmlwebsites

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions