{# MaatLog table of contents: what this page shows, inside the right rail. ``maatlog_has_toc`` is computed once in ``layout.html`` so that the layout's ``maatlog-layout-has-toc`` state class and this element can never disagree. ``toc`` and ``display_toc`` only reach real documents (Sphinx builds them in ``get_doc_context``), so generated archive pages fall back to the cards they list. Renders nothing at all when there is neither. #} {%- set has_posts = maatlog.posts and maatlog.page_kind in ("home", "archive") -%} {%- if maatlog_has_toc -%} {%- endif -%}