Newer
Older
{% block title %}{{ SITENAME }} · Archives{% endblock %}
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% block content %}
{%- if dates %}
<h1>Archives</h1>
{#- hold on to your butts! #}
{% set month = None -%}
{%- for article in dates -%}
{% set cmonth = article.date.date().replace(day=1) %}
{%- if not month -%}
{% set month = cmonth %}
<h4 class="date">{{ article.date.strftime("%b %Y") }}</h4>
<div class="post archives">
<ul>
{%- elif cmonth < month -%}
{% set month = cmonth %}
</ul>
<br />
</div>
<h4 class="date">{{ article.date.strftime("%b %Y") }}</h4>
<div class="post archives">
<ul>
{%- endif %}
<li>{{ article.date.strftime("%d") }}: <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title | truncate(70) }}</a></li>
{%- endfor %}
</ul>
<br />
</div>
{% else %}
<div class="post text pinned">
<h2>No Posts</h2>
<p>There aren't any posts in the timeframe specified.</p>
</div>
{% endif %}
{% endblock %}