Added archive_post partial

Added post_category partial
Added archives page
This commit is contained in:
Brandon Mathis
2011-06-27 17:38:51 -04:00
parent 87c9dc6430
commit 62c9780c67
3 changed files with 35 additions and 0 deletions

View File

@ -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>