Reputation: 20437
I would like to skip an iteration based on a condition.
I'm using liquid templates as part of Jekyll.
I don't see a continue in the docs:
http://www.rubydoc.info/gems/liquid/Liquid/For
{% for page in site.pages %}
{% if page.url == '/index.html' %}
// Continue here
{% endif %}
{{ page.title }}
{% endfor %}
Upvotes: 7
Views: 5331