-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwriting.html
More file actions
25 lines (23 loc) · 738 Bytes
/
writing.html
File metadata and controls
25 lines (23 loc) · 738 Bytes
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
---
layout: writing
permalink: /writing/
---
<section id="archive">
<h3>This year's posts</h3>
{%for post in site.posts %}
{% unless post.next %}
<ul class="this">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
<h3>{{ post.date | date: '%Y' }}</h3>
<ul class="past">
{% endif %}
{% endunless %}
<li><time>{{ post.date | date:"%d %b" }}</time> - <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</section>
<!-- This is where I found the solution: http://reyhan.org/2013/03/jekyll-archive-without-plugins.html -->