From 1c574d24b7fdd482499fa9553c19342b6a4d391e Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Tue, 24 Jan 2012 21:53:22 +0800 Subject: created --- source/_includes/post/categories.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/_includes/post/categories.html (limited to 'source/_includes/post/categories.html') 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' %} +
+ {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} +
+{% endunless %} -- cgit v1.2.3