aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '.themes/classic/source/_layouts')
-rw-r--r--.themes/classic/source/_layouts/category_index.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/.themes/classic/source/_layouts/category_index.html b/.themes/classic/source/_layouts/category_index.html
index 699f3dec..cce9777c 100644
--- a/.themes/classic/source/_layouts/category_index.html
+++ b/.themes/classic/source/_layouts/category_index.html
@@ -1,10 +1,15 @@
---
-layout: post
-no_meta: true
+layout: page
+no_footer: true
---
-<div class="blog-archives category">
+<div id="blog-archives" class="category">
{% for post in site.categories[page.category] %}
+{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
+{% unless year == this_year %}
+ {% assign year = this_year %}
+ <h2>{{ year }}</h2>
+{% endunless %}
<article>
{% include archive_post.html %}
</article>