qwik-cms/content/components/toc.njk

9 lines
226 B
Plaintext
Raw Normal View History

2021-08-04 17:48:11 +02:00
{% macro header(size, text) %}
{% append "toc" %}
<a name="{{ text | replace(" ", "-") }}" class="toc-{{ size }}">{{ text }}</a>
{% endappend %}
<{{ size }}>
{{ text }}
</{{ size }}>
{% endmacro %}