-
Notifications
You must be signed in to change notification settings - Fork 0
/
archives.html
29 lines (27 loc) · 909 Bytes
/
archives.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
---
<h2>Archives</h2>
<div id="archive">
<ul>
{% for post in site.posts %}
{% unless post.next %}
<h2 class="archive_header">{{ post.date | date: '%Y' }}</h2>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h2 class="archive_header">{{ post.date | date: '%Y' }}</h2>
{% endif %}
{% endunless %}
{% if post.external-url %}
{% else %}
<li class="archive_list"><span>{{ post.date | date: '%b %d' }}</span> <a href="{{base.site_url}}{{ post.url }}">{{ post.title }}</a>
<br>
<div class="summary">{{ post.summary }}</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>