{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} {% unless category == '0' %} posted in {% if post %} {{ post.categories | category_links }} {% else %} {{ page.categories | category_links }} {% endif %} {% endunless %}