layout | title |
---|---|
default |
Blog archive |
{% for post in site.posts %}
{% capture currentyear %}{{post.date | date: "%Y"}}{% endcapture %}
{% if currentyear != year %}
{% unless forloop.first %}{% endunless %}
-
{% capture year %}{{currentyear}}{% endcapture %}
{% endif %}
- {{ post.title }} {% if forloop.last %}