mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
feat(11ty): use flag text in template
This commit is contained in:
parent
6ef759b5ef
commit
82ca5c359f
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user