diff options
author | Tommy Chen <tommy351@gmail.com> | 2012-06-03 05:50:08 +0200 |
---|---|---|
committer | Tommy Chen <tommy351@gmail.com> | 2012-06-03 05:50:08 +0200 |
commit | 8f6ae6b36604c6dcfc105d7bbfd21716373b9739 (patch) | |
tree | cddc7dabd852e2c8b550e44b5b769fed9b7d7044 /source/_layouts | |
parent | 5bae43b46cd5dd399836f8e326ee128373c1a855 (diff) | |
download | octopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.zip octopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.tar.gz |
simplify archive
Diffstat (limited to 'source/_layouts')
-rw-r--r-- | source/_layouts/category_index.html | 15 |
1 files changed, 3 insertions, 12 deletions
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] %} -<section class="archive"> - {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} - {% unless year == this_year %} - {% assign year = this_year %} - <h1 class="archive-title">{{ year }}</h1> - {% endunless %} - <article class="archive"> - {% include archive_post.html %} - </article> -</section> -{% endfor %} +{% for post in site.posts reverse %} + {% include archive_post.html %} +{% endfor %}
\ No newline at end of file |