qwik-cms/content/components/toc.njk

10 lines
281 B
Plaintext
Raw Normal View History

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