2021-07-28 20:42:10 +02:00
|
|
|
{% macro header(size, text, tocList) %}
|
|
|
|
{% set tocList = (tocList.push([size, text]), tocList) %}
|
|
|
|
<a name="{{ text | replace(" ", "-") }}"></a>
|
|
|
|
<{{ size }}>
|
|
|
|
{{ text }}
|
|
|
|
</{{ size }}>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro generate(tocList) %}
|
2021-07-29 00:14:40 +02:00
|
|
|
<div class="toc-container">
|
|
|
|
<div class="toc">
|
|
|
|
<p class="toc-title">Table of Contents</p>
|
|
|
|
|
|
|
|
{% for size, text in tocList %}
|
|
|
|
<a href="#{{ text | replace(" ", "-") }}" class="toc-{{ size }}">{{ text }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-28 20:42:10 +02:00
|
|
|
{% endmacro %}
|