From 62c9780c677a2750d8942773dffedbb1045a8f4b Mon Sep 17 00:00:00 2001 From: Brandon Mathis <brandon@imathis.com> Date: Mon, 27 Jun 2011 17:38:51 -0400 Subject: Added archive_post partial Added post_category partial Added archives page --- themes/classic/source/archives.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 themes/classic/source/archives.html (limited to 'themes/classic/source/archives.html') diff --git a/themes/classic/source/archives.html b/themes/classic/source/archives.html new file mode 100644 index 00000000..ebf447c9 --- /dev/null +++ b/themes/classic/source/archives.html @@ -0,0 +1,17 @@ +--- +layout: post +title: Blog Archive +no_meta: true +--- +<div class="blog-archives"> +{% for post in site.posts reverse %} +{% 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> -- cgit v1.2.1