-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts_chrono.html
More file actions
26 lines (26 loc) · 800 Bytes
/
posts_chrono.html
File metadata and controls
26 lines (26 loc) · 800 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
26
---
layout: default_container
title: Posts
noheader: true
description: All posts in chronological order.
---
<h1><span class="fa fa-history fa-fw"></span> Posts</h1>
<ul>
{% for post in site.posts %}
{% if post.redirect_to %}
{% else %}
{% assign currentdate = post.date | date: "%Y" %}
{% if currentdate != date %}
{% unless forloop.first %}</ul>{% endunless %}
<h2 id="y{{post.date | date: '%Y'}}">{{ currentdate }}</h2>
<ul>
{% assign date = currentdate %}
{% endif %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a> (<i>{{ post.date | date_to_string }}</i>)</br>
{{ post.description }}
</li>
{% if forloop.last %}</ul>{% endif %}
{% endif %}
{% endfor %}
</ul>