diff options
Diffstat (limited to 'source/_includes/post/categories.html')
-rw-r--r-- | source/_includes/post/categories.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/_includes/post/categories.html b/source/_includes/post/categories.html new file mode 100644 index 0000000..2ec7896 --- /dev/null +++ b/source/_includes/post/categories.html @@ -0,0 +1,10 @@ +{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} +{% unless category == '0' %} +<div class="cat"> + {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} +</div> +{% endunless %} |