Skip to content

No TOC or github links unless more than one header in page #691

@blacksqr

Description

@blacksqr

Quarto version 0.9.271 installed on Ubuntu from .deb release package

When I create and preview a new book project, the rendered index.qmd page has a table of contents on the right. None of the other pages has a table of contents.

If I add a second header to e.g. the intro.qmd page, the page is re-rendered with a table of contents.

Maybe you made the design decision to omit a table of contents if there is only one header. But a consequence of that is that if I try to include Github links via the "repo-url:" etc. options in _quarto.yml, the Github links are missing along with the toc in the rendered pages.

Behavior is similar for a new website project, but in that case there is no TOC or links on the rendered index.qmd page either.

I want to make sure there are Github links on every page of my book. If you don't want to create a full table of contents on pages with only one header, can you make it so that at least the Github links will appear?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions