{% layout 'blog.liquid' %}

{% block blog_content %}
	<h2>Post Archive</h2>

	<div class="recent-posts">
		{% for year in collections.blogByYear %}
			<h3>{{ year.year }}</h3>
			<ul class="plain">
				{% for post in year.posts %}
					<li>
						<div class="secondary">{{ post.date | date: "%Y-%m-%d" }}</div>
						<a class="title" href="{{ post.url }}">{{ post.data.title }}</a>
					</li>
				{% endfor %}
			</ul>
		{% endfor %}
	</div>
{% endblock %}
