Files
GeyserWebsite/pages/archive.md
T
2021-12-12 14:09:40 +00:00

742 B
Executable File

layout, title, permalink
layout title permalink
page Articles /archive/

News Archive

{% for post in site.posts %}{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}

{% if forloop.first %}

{{this_year}}

    {% endif %}
  • {{ post.date | date: "%b %-d, %Y" }}: {{ post.title }}
  • {% if forloop.last %}
{% else %}{% if this_year != next_year %}

{{next_year}}

    {% endif %}{% endif %}{% endfor %}