feat(11ty): link sub terms in table of content

This commit is contained in:
Oscar 2019-11-17 19:50:10 +01:00
parent 42d525279b
commit fdc49636e3

View File

@ -9,7 +9,9 @@
{%- if definition.data.sub_terms -%} {%- if definition.data.sub_terms -%}
<ul class="sub-terms"> <ul class="sub-terms">
{% for term in definition.data.sub_terms %} {% for term in definition.data.sub_terms %}
<li class="subterm">{{ term.text }} <li
class="subterm"
>{{ term | linkSubTermIfDefined(collections.definedWords) | safe }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}