feat(11ty): render subterms in toc

This commit is contained in:
Oscar 2019-11-17 18:27:47 +01:00
parent a83f278cee
commit 90666572b9

View File

@ -6,5 +6,11 @@
(definition.data.flag.level == 'avoid') -%}
<span class="flag__red">{{ definition.data.flag.type }}</span>
{% 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 %}
</li>