8000 When TOC is empty, "Table of contents" still exists. · Issue #2586 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

When TOC is empty, "Table of contents" still exists. #2586

@ningz6

Description

@ningz6

Hi, when I build with mkdocs-material, I find that when TOC is empty, "Table of contents" still exists.

My-Docs

And I find that change

{% if toc is iterable %}

to

{% if toc %} 

will fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0