mirror of
https://github.com/bigskysoftware/hypermedia-systems.git
synced 2025-11-30 00:03:48 -05:00
don't show table of contents at the end
This commit is contained in:
parent
f9e46e69c4
commit
396f8f2863
@ -15,7 +15,7 @@ layout: layout.njk
|
|||||||
{% set prev = search.previousPage(url, "chapter!=undefined", "chapter") %}
|
{% set prev = search.previousPage(url, "chapter!=undefined", "chapter") %}
|
||||||
{% set next = search.nextPage(url, "chapter!=undefined", "chapter") %}
|
{% set next = search.nextPage(url, "chapter!=undefined", "chapter") %}
|
||||||
|
|
||||||
{% macro nav() %}
|
{% macro nav(show_toc=false) %}
|
||||||
<nav aria-label="Chapters navigation">
|
<nav aria-label="Chapters navigation">
|
||||||
<div class="f-row flex-wrap:wrap justify-content:space-between">
|
<div class="f-row flex-wrap:wrap justify-content:space-between">
|
||||||
{% if prev or part %}
|
{% if prev or part %}
|
||||||
@ -33,6 +33,7 @@ layout: layout.njk
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if show_toc %}
|
||||||
<details>
|
<details>
|
||||||
<summary>Contents</summary>
|
<summary>Contents</summary>
|
||||||
|
|
||||||
@ -48,10 +49,11 @@ layout: layout.njk
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{{ asciidoc and toc(asciidoc) }}
|
{{ asciidoc and toc(asciidoc) }}
|
||||||
</details>
|
</details>
|
||||||
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{{ nav() }}
|
{{ nav(show_toc=true) }}
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user