642 B
642 B
layout | title |
---|---|
default | Archive |
Archive
{::nomarkdown} {% assign current_year = "" %} {% for post in site.posts %} {% assign post_year = post.date | date: "%Y" %}
{% if post_year != current_year %} {% unless forloop.first %} {% endunless %}
<h2 id="y{{ post_year }}">{{ post_year }}</h2>
<ul class="post-list">
{% assign current_year = post_year %}
{% endif %}
{% if forloop.last %} {% endif %} {% endfor %} {:/}