From 5bae43b46cd5dd399836f8e326ee128373c1a855 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Sun, 3 Jun 2012 11:24:21 +0800 Subject: simplify post --- source/_includes/post/categories.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'source/_includes/post/categories.html') diff --git a/source/_includes/post/categories.html b/source/_includes/post/categories.html index 2ec7896..8c1c81f 100644 --- a/source/_includes/post/categories.html +++ b/source/_includes/post/categories.html @@ -1,10 +1,8 @@ {% 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 %} -
+{% if post %} + {{ post.categories | category_links }} +{% else %} + {{ page.categories | category_links }} +{% endif %} {% endunless %} -- cgit v1.2.3