blog/source/_includes/post/categories.html

9 lines
325 B
HTML
Raw Normal View History

2012-06-03 11:40:57 +00:00
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
{% unless category == '0' %}
{% if post %}
{{ post.categories | category_links }}
{% else %}
{{ page.categories | category_links }}
{% endif %}
{% endunless %}