all ()

This method returns all matching Records that match the query as a list. In many cases just iterating over the query achieve the same result, but if you want an actual list this method comes in handy.


{% items = site.query('/projects').include_hidden(false).all() %}
{% if items %}
  {% for item in items %}
    <li>{{ }}</li>
  {% endfor %}
{% endif %}