mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 09:50:39 +00:00
20 lines
497 B
Plaintext
20 lines
497 B
Plaintext
|
{% set renderedName %}
|
||
|
{{ definition.data.title}}
|
||
|
{%- 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 %}
|
||
|
{% endset %}
|
||
|
<li>
|
||
|
{%- if definition.data.defined -%}
|
||
|
<a
|
||
|
href={{ definition.data.slug | linkTarget | url }}
|
||
|
class="word__link"
|
||
|
>{{ renderedName | safe }}</a>
|
||
|
{%- else -%}
|
||
|
{{ renderedName | safe }}
|
||
|
{% endif %}
|
||
|
</li>
|