diff options
Diffstat (limited to 'archive.liquid')
-rw-r--r-- | archive.liquid | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/archive.liquid b/archive.liquid new file mode 100644 index 0000000..adc35f5 --- /dev/null +++ b/archive.liquid @@ -0,0 +1,30 @@ +--- +layout: default +permalink: /archive.html +--- + +<div class="column"> + <h1> + {% t global.archive %} + </h1> + + {% for post in site.posts %} + {% unless post.next %} + <h2>{{ post.date | date: '%Y' }}</h2> + <ul> + {% else %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} + {% if year != nyear %} + </ul> + <h2>{{ post.date | date: '%Y' }}</h2> + <ul> + {% endif %} + {% endunless %} + <li> + <a href="{{ site.baseurl}}{{ post.url }}"> + {{ post.date | date: "%b %-d" }} - {{ post.title }} + </a> + </li> + {% endfor %} +</div> |