Skip to content

Instantly share code, notes, and snippets.

@Cloud-Awesome
Created April 19, 2021 11:27
Show Gist options
  • Save Cloud-Awesome/b5a188c1df26f475347ac305f851cdc9 to your computer and use it in GitHub Desktop.
Save Cloud-Awesome/b5a188c1df26f475347ac305f851cdc9 to your computer and use it in GitHub Desktop.
{% 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