Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 690 Bytes
---
layout: default
title: Archive
meta-description: Archive page, with posts aggregated by year.
---
<div class="box">
<h3>Archives</h3>
<div class="clearfix"></div>
<div class="right big">
{% for post in site.posts %}
{% unless post.next %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% endif %}
{% endunless %}
<p style="padding-left:50px"><a href="{{ post.url }}">{{ post.title }}</a></p>
{% endfor %}
</div>
</div>