Link List
The linklist
object describes a list of navigation links, including its handle, title, and contained links.
Usage Example
{%- comment -%} Render a navigation linklist {%- endcomment -%}
<nav>
<ul>
{% for link in linklist.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</nav>
Properties
handle
Returns the handle for this linklist.
levels
Returns the total number of levels in this linklist.
links
Returns the links in this list.
title
Returns the title of the linklist.
Last updated on