aboutsummaryrefslogtreecommitdiff
path: root/themes/classic/source/archives.html
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-06-27 17:38:51 -0400
committerBrandon Mathis <brandon@imathis.com>2011-06-27 17:38:51 -0400
commit62c9780c677a2750d8942773dffedbb1045a8f4b (patch)
tree133ff90e96edbe78da9fb724364c0514b2e6485c /themes/classic/source/archives.html
parent87c9dc64303996aaea4f7487476bae3b6c811f66 (diff)
downloadmy_new_personal_website-62c9780c677a2750d8942773dffedbb1045a8f4b.tar.xz
my_new_personal_website-62c9780c677a2750d8942773dffedbb1045a8f4b.zip
Added archive_post partial
Added post_category partial Added archives page
Diffstat (limited to '')
-rw-r--r--themes/classic/source/archives.html17
1 files changed, 17 insertions, 0 deletions
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>