qwik-cms/content/components/toc.njk

6 lines
218 B
Plaintext
Raw Normal View History

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