mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 01:40:10 +00:00
878b474f32
* ⚠️ Add flag design for content warning
* Fix build error
* Lol fix build error
* Added terms
24 lines
851 B
Plaintext
24 lines
851 B
Plaintext
<li class="toc__list-item">
|
|
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }}
|
|
{%- if
|
|
definition.data.flag and
|
|
definition.data.flag.text and
|
|
(definition.data.flag.level == 'avoid') -%}
|
|
<span class="flag__red">{{ definition.data.flag.text }}</span>
|
|
{%- elseif
|
|
definition.data.flag and
|
|
definition.data.flag.text and
|
|
(definition.data.flag.level == 'warning') -%}
|
|
<span class="flag__yellow">{{ definition.data.flag.text }}</span>
|
|
{% endif %}
|
|
{%- if definition.data.sub_terms -%}
|
|
<ul class="sub-terms" role="list" aria-label="{{definition.data.title}}">
|
|
{% for term in definition.data.sub_terms %}
|
|
<li
|
|
class="subterm"
|
|
>{{ term | linkSubTermIfDefined(collections.definedWords) | safe }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|