summaryrefslogtreecommitdiffstats
path: root/source/_layouts/category_index.html
diff options
context:
space:
mode:
Diffstat (limited to 'source/_layouts/category_index.html')
-rw-r--r--source/_layouts/category_index.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/_layouts/category_index.html b/source/_layouts/category_index.html
new file mode 100644
index 0000000..85a6307
--- /dev/null
+++ b/source/_layouts/category_index.html
@@ -0,0 +1,17 @@
+---
+layout: page
+footer: false
+---
+
+<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>
+{% endfor %}
+</div>