selfdefined/11ty/_includes/components/table-of-content-item.njk

19 lines
581 B
Plaintext
Raw Normal View History

<li>
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }}
{%- if
definition.data.flag and
definition.data.flag.type and
(definition.data.flag.level == 'avoid') -%}
<span class="flag__red">{{ definition.data.flag.type }}</span>
{% endif %}
2019-11-17 18:27:47 +01:00
{%- if definition.data.sub_terms -%}
<ul class="sub-terms">
{% for term in definition.data.sub_terms %}
<li
class="subterm"
>{{ term | linkSubTermIfDefined(collections.definedWords) | safe }}</li>
2019-11-17 18:27:47 +01:00
{% endfor %}
</ul>
{% endif %}
</li>