qwik-cms/content/components/toc.njk
2021-08-04 23:18:01 +02:00

10 lines
281 B
Plaintext

{% macro header(size, text) %}
{% append "toc" %}
<a href="#{{ text | replace(" ", "-") }}" class="toc-{{ size }}">{{ text }}</a>
{% endappend %}
<a name="{{ text | replace(" ", "-") }}"></a>
<{{ size }}>
{{ text }}
</{{ size }}>
{% endmacro %}