~xdavidwu/xdavidwu.link

ref: 3aa50cc5a5c2075795d157d2626e06a3ce6fc9cc xdavidwu.link/_pages/year-archive.html -rw-r--r-- 495 bytes
3aa50cc5 — Michael Rose Add support for Jekyll Archives plugin 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: archive
permalink: /year-archive/
title: "Posts by Year"
author_profile: false
---

{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
  {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
  {% if year != written_year %}
    <h2 id="{{ year | slugify }}" class="archive__subtitle">{{ year }}</h2>
    {% capture written_year %}{{ year }}{% endcapture %}
  {% endif %}
  {% include archive-list-single.html %}
{% endfor %}