-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (25 loc) · 891 Bytes
/
index.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
30
31
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts</h1>
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h3 id="{{ this_year }}-ref">{{ this_year }}</h3>
<ul class="post-list">
{% endif %}
<li>{{ post.date | date: "%b %-d, %Y" }} <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h3 id="{{ next_year }}-ref">{{ next_year }}</h3>
<ul class="post-list">
{% endif %}
{% endif %}
{% endfor %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>