qwik-cms/content/components/toc.njk

9 lines
226 B
Plaintext

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