From caeed23e766705eecae7ef17a534213c0f87fdd6 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:19:10 +0800 Subject: archive, category --- source/_layouts/category_index.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'source/_layouts/category_index.html') diff --git a/source/_layouts/category_index.html b/source/_layouts/category_index.html index 85a6307..7e64ebe 100644 --- a/source/_layouts/category_index.html +++ b/source/_layouts/category_index.html @@ -1,17 +1,16 @@ --- -layout: page -footer: false +layout: default --- -
{% for post in site.categories[page.category] %} -{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} -{% unless year == this_year %} - {% assign year = this_year %} -

{{ year }}

-{% endunless %} -
- {% include archive_post.html %} -
+
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} + {% unless year == this_year %} + {% assign year = this_year %} +

{{ year }}

+ {% endunless %} +
+ {% include archive_post.html %} +
+
{% endfor %} -
-- cgit v1.2.3