MinimalBible.github.io/posts.html

32 lines
813 B
HTML
Raw Permalink Normal View History

2013-08-23 15:06:39 -04:00
---
layout: post-index
permalink: /posts/
2013-08-23 15:06:39 -04:00
title: All Posts
description: "An archive of posts."
---
{% for post in site.posts %}
2014-02-26 15:48:56 -05:00
{% 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 %}
<li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
</article>
2013-08-23 15:06:39 -04:00
{% else %}
2014-02-26 15:48:56 -05:00
{% if this_year != next_year %}
</ul>
</article>
<article>
<h2 id="{{ next_year }}-ref">{{next_year}}</h2>
<ul>
{% endif %}
2013-08-23 15:06:39 -04:00
{% endif %}
{% endfor %}