Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Last active December 26, 2015 03:48
Show Gist options
  • Save destroytoday/7088054 to your computer and use it in GitHub Desktop.
Save destroytoday/7088054 to your computer and use it in GitHub Desktop.
{% assign count = '0' %}
{% for post in posts %}
{% if post.taxonomy.tag != 'Editorially' && !post.meta.feature %}
{{ post.title }}
{% unless count < 3 %}{% break %}{% endunless %}
{% endif %}
{% capture count %}{{ count | plus: 1 }}{% endcapture %}
{% endfor %}
{% assign starting_count = count %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment