2020-12-04 09:18:25 +03:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
# The Archives of posts.
|
|
|
|
---
|
|
|
|
|
2022-04-25 19:39:58 +03:00
|
|
|
{% include lang.html %}
|
|
|
|
|
|
|
|
{% if site.prefer_datetime_locale == 'en' or lang == 'en' %}
|
|
|
|
{% assign df_strftime_m = '%b' %}
|
|
|
|
{% assign df_dayjs_m = 'MMM' %}
|
|
|
|
{% else %}
|
|
|
|
{% assign df_strftime_m = '/ %m' %}
|
|
|
|
{% assign df_dayjs_m = '/ MM' %}
|
|
|
|
{% endif %}
|
2021-07-20 20:01:09 +03:00
|
|
|
|
2022-04-25 19:39:58 +03:00
|
|
|
<div id="archives" class="pl-xl-2">
|
2020-12-04 09:18:25 +03:00
|
|
|
{% for post in site.posts %}
|
|
|
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
|
|
|
{% capture pre_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
|
|
|
{% if forloop.first %}
|
|
|
|
{% assign last_day = "" %}
|
|
|
|
{% assign last_month = "" %}
|
|
|
|
<span class="lead">{{this_year}}</span>
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{% endif %}
|
|
|
|
<li>
|
|
|
|
<div>
|
2022-01-26 17:06:44 +03:00
|
|
|
{% assign ts = post.date | date: '%s' %}
|
2022-04-25 19:39:58 +03:00
|
|
|
<span class="date day" data-ts="{{ ts }}" data-df="DD">
|
|
|
|
{{ post.date | date: "%d" }}
|
|
|
|
</span>
|
|
|
|
<span class="date month small text-muted" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
|
|
|
|
{{ post.date | date: df_strftime_m }}
|
2022-01-26 17:06:44 +03:00
|
|
|
</span>
|
2020-12-04 09:18:25 +03:00
|
|
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% if forloop.last %}
|
|
|
|
</ul>
|
|
|
|
{% elsif this_year != pre_year %}
|
|
|
|
</ul>
|
|
|
|
<span class="lead">{{pre_year}}</span>
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{% assign last_day = "" %}
|
|
|
|
{% assign last_month = "" %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|