public
Created

Jekyll archives.html page

  • Download Gist
archives.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
 
---
layout: default
title: Archives
---
<div id="post">
<h1>Archives</h1>
<p>All posts can be found on this page or by <a href="{{site.base_url}}/search" title="Search">searching</a>. Bits (short-form pieces) are not included here and have <a href="{{site.base_url}}/bits" title="Bits">their own section</a>.</p><br/>
{% for year in (2005..2015) reversed %}
{% if site.collated_posts[year] %}
<h2 class="archives">{{ year }}</h2>
{% endif %}
{% for month in (1..12) reversed %}
{% if site.collated_posts[year][month] %}
<h3>{{ month | to_month }}</h3>
<ul class="archive-page">
{% for day in (1..31) reversed %}
{% if site.collated_posts[year][month][day] %}
{% for post in site.collated_posts[year][month][day] reversed %}
<li><a href='{{ site.base_url }}{{ post.url }}' title="{{ post.title }}">{{ post.title }}</a></li>
{% endfor %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endfor %}
</div>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.