feat(11ty): use flag text in template

This commit is contained in:
Oscar 2019-11-17 22:28:31 +01:00
parent 6ef759b5ef
commit 82ca5c359f

View File

@ -2,9 +2,9 @@
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }}
{%- if
definition.data.flag and
definition.data.flag.type and
definition.data.flag.text and
(definition.data.flag.level == 'avoid') -%}
<span class="flag__red">{{ definition.data.flag.type }}</span>
<span class="flag__red">{{ definition.data.flag.text }}</span>
{% endif %}
{%- if definition.data.sub_terms -%}
<ul class="sub-terms">