2019-11-15 20:13:29 +01:00
|
|
|
<section>
|
|
|
|
<nav class="auto-grid list" aria-label="Definitions">
|
|
|
|
<ul>
|
|
|
|
{% for definition in collections.definitions %}
|
|
|
|
{% set renderedName %}
|
|
|
|
{{ definition.data.title}}
|
2019-11-15 21:22:09 +01:00
|
|
|
{%- if
|
|
|
|
definition.data.flag and
|
|
|
|
definition.data.flag.type and
|
|
|
|
(definition.data.flag.level == 'avoid') -%}
|
2019-11-15 20:13:29 +01:00
|
|
|
<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>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</section>
|