Skip to content

Instantly share code, notes, and snippets.

@carolineschnapp
Created March 19, 2012 23:09
Show Gist options
  • Select an option

  • Save carolineschnapp/2128178 to your computer and use it in GitHub Desktop.

Select an option

Save carolineschnapp/2128178 to your computer and use it in GitHub Desktop.
{% assign shipping_section = '' %}
{% assign blog = blogs.faq %}
{% paginate blog.articles by 100 %}
{% for article in blog.articles %}
{% if article.tags contains 'Shipping' %}
{% capture shipping_section %}{{ shipping_section }}<li>{{ article.title | link_to: article.url }}</li>{% endcapture %}
{% endif %}
{% endfor %}
{% endpaginate %}
{% unless shipping_section == blank %}
<ul>{{ shipping_section }}</ul>
{% endif %}
@dejanstrancar

Copy link
Copy Markdown

{% unless shipping_section == blank %}

    {{ shipping_section }}
{% endif %}

should be

{% unless shipping_section == blank %}

    {{ shipping_section }}
{% endunless %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment