layout | title |
---|---|
default |
Archive |
{% assign years = "2024|2023|2022|2021|2020|2019|2018|2017|2016|2015|2014" | split: "|" %} {% capture strnowyear %}{{'now' | date: '%Y'}}{% endcapture %} {% assign nowyear = strnowyear | plus: 0 %}
{% for stryear in years %}
{% assign year = stryear | plus: 0 %}
{% if year <= nowyear %}
{{year}}
{% for post in site.posts %}
{% capture postyear %} {{post.date | date: '%Y'}}{% endcapture %}
{% if postyear contains stryear %}
[ {{ post.title }} ]({{ post.url }})
» by {{ post.author }} on {{ post.date | date_to_string }}
{% endif %} {% endfor %}
{% endif %} {% endfor %}