13 lines
407 B
Plaintext
13 lines
407 B
Plaintext
{% macro header(size, text, tocList) %}
|
|
{% set tocList = (tocList.push([size, text]), tocList) %}
|
|
<a name="{{ text | replace(" ", "-") }}"></a>
|
|
<{{ size }}>
|
|
{{ text }}
|
|
</{{ size }}>
|
|
{% endmacro %}
|
|
|
|
{% macro generate(tocList) %}
|
|
{% for size, text in tocList %}
|
|
<a href="#{{ text | replace(" ", "-") }}" class="toc-{{ size }}">{{ text }}</a>
|
|
{% endfor %}
|
|
{% endmacro %} |