From 8f6ae6b36604c6dcfc105d7bbfd21716373b9739 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Sun, 3 Jun 2012 11:50:08 +0800 Subject: simplify archive --- source/_layouts/category_index.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'source/_layouts') diff --git a/source/_layouts/category_index.html b/source/_layouts/category_index.html index 7e64ebe..0c16ef3 100644 --- a/source/_layouts/category_index.html +++ b/source/_layouts/category_index.html @@ -2,15 +2,6 @@ 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 %} -
-
-{% endfor %} +{% for post in site.posts reverse %} + {% include archive_post.html %} +{% endfor %} \ No newline at end of file -- cgit v1.2.3