boxes/archive.html
2014-12-23 22:50:09 +01:00

23 lines
614 B
HTML

---
layout: default
---
<div class="well">
{%for post in site.posts %}
{% unless post.next %}
<h1>{{ post.date | date: '%Y' }}</h1>
<ul>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
<h1>{{ post.date | date: '%Y' }}</h1>
<ul>
{% endif %}
{% endunless %}
<li><a href="{{ site.baseurl}}{{ post.url }}">{{ post.date | date: "%b %-d" }} - {{ post.title }}</a></li>
{% endfor %}
</ul>
</div>