fix build failing

This commit is contained in:
Deniz Akşimşek 2023-04-24 18:35:56 +03:00
parent 3e0c5a25f9
commit ca6abef846

View File

@ -47,12 +47,7 @@ layout: layout.njk
</h1>
</header>
{% if asciidoc.getSections().length %}
<div class="container">
<details class="contents">
<summary>Contents</summary>
{% macro toc(block, level=0, url="") %}
{% macro toc(block, level=0, url="") %}
{% set isPart = level == 0 and is_whole_book %}
{% set isChapter = level == 1 and is_whole_book %}
<ul class="nested-list">
@ -66,7 +61,12 @@ layout: layout.njk
</li>
{% endfor %}
</ul>
{% endmacro %}
{% endmacro %}
{% if asciidoc and asciidoc.getSections().length %}
<div class="container">
<details class="contents">
<summary>Contents</summary>
{{ asciidoc and toc(asciidoc, 0) }}
</details>
</div>