Skip to content

Add flag to check if toc is empty #154

@njanakiev

Description

@njanakiev

First of all thanks for the great project! I think an useful feature might be to have a flag to see if the table of contents is empty. Perhaps something in this direction:

{% if not toc.empty %}
<h2>Table of Contents</h2>
{% endif %}

This could be useful for short articles that do not require a table of contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions