Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% assign links = weblinks[page.adx_navigation.id] %}
<ol class="task-list">
<!-- List "title" links (i.e. those with no parent, in display order -->
{% for link in links.weblinks %}
<li>
<h2 class="task-list-section">
<span class="task-list-section-number">
{{ link["adx_displayorder"] }}.
</span> {{ link.name }}
</h2>
<ul class="task-list-items">
<!-- Put a link for each child link -->
{% for child_link in link.weblinks %}
<li class="task-list-item">
<a class="task-name" href="{{ child_link.url }}">
{{ child_link.name }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment