2014-03-23 19:40:19 +00:00
|
|
|
---
|
|
|
|
layout: post-index
|
|
|
|
permalink: /posts/
|
|
|
|
title: All Posts
|
|
|
|
description: "An archive of posts."
|
|
|
|
---
|
|
|
|
|
|
|
|
{% for post in site.posts %}
|
|
|
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
|
|
|
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
|
|
|
|
|
|
|
{% if forloop.first %}
|
|
|
|
<article>
|
|
|
|
<h2 id="{{ this_year }}-ref">{{ this_year }}</h2>
|
|
|
|
<ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2014-03-24 13:42:20 +00:00
|
|
|
<li class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
|
2014-03-23 19:40:19 +00:00
|
|
|
|
|
|
|
{% if forloop.last %}
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
{% else %}
|
|
|
|
{% if this_year != next_year %}
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2 id="{{ next_year }}-ref">{{next_year}}</h2>
|
|
|
|
<ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2014-03-24 13:42:20 +00:00
|
|
|
{% endfor %}
|