Merge pull request #43 from ovlb/feature/fix-break-in-table-of-content

👩‍🎨 Avoid Breaks in Table of Content Items
This commit is contained in:
Tatiana Mac
2020-02-11 21:38:30 -08:00
committed by GitHub
5 changed files with 21 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
<li>
<li class="toc__list-item">
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }}
{%- if
definition.data.flag and

View File

@@ -1,16 +1,16 @@
<section>
<nav class="" aria-label="Definitions">
<ol class="multi-column u-no-padding-left list">
{% for section in collections.tableOfContent %}
<li>
<span class="sub-headline">{{ section.title }}</span>
<ol>
{% for definition in section.definitions %}
{% include 'components/table-of-content-item.njk' %}
{% endfor %}
</ol>
</li>
{% endfor %}
{% for section in collections.tableOfContent %}
<li>
<span class="sub-headline">{{ section.title }}</span>
<ol class="toc__list">
{% for definition in section.definitions %}
{% include 'components/table-of-content-item.njk' %}
{% endfor %}
</ol>
</li>
{% endfor %}
</ol>
</nav>
</section>