Class: NavListDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
app/drops/nav_list_drop.rb

Overview

Represents a collection of NavListLinkDrop (accessible through nav.your_list_handle on a site) which you can iterate over using for loops.

Examples:

If you have created a link list on your site with the handle footer you can acess it using something like

{% for link in nav.footer %}
  URL: {{ link.url }} Label: {{ link.label }}
{% endfor %}

Instance Method Summary collapse

Instance Method Details

#lengthInteger

Returns the number of links in this list

Returns:

  • (Integer)