mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 01:40:10 +00:00
feat(11ty): render subterms in toc
This commit is contained in:
parent
a83f278cee
commit
90666572b9
@ -6,5 +6,11 @@
|
|||||||
(definition.data.flag.level == 'avoid') -%}
|
(definition.data.flag.level == 'avoid') -%}
|
||||||
<span class="flag__red">{{ definition.data.flag.type }}</span>
|
<span class="flag__red">{{ definition.data.flag.type }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{%- if definition.data.sub_terms -%}
|
||||||
|
<ul class="sub-terms">
|
||||||
|
{% for term in definition.data.sub_terms %}
|
||||||
|
<li class="subterm">{{ term.text }}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user