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 %}
|
|
|
|
|
2022-10-18 21:49:31 +03:00
|
|
|
{% assign df_strftime_m = site.data.locales[lang].df.archives.strftime | default: '/ %m' %}
|
|
|
|
{% assign df_dayjs_m = site.data.locales[lang].df.archives.dayjs | default: '/ MM' %}
|
2021-07-20 20:01:09 +03:00
|
|
|
|
2022-08-03 13:47:42 +03:00
|
|
|
<div id="archives" class="pl-xl-3">
|
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% for post in site.posts %}
|
2022-08-03 13:47:42 +03:00
|
|
|
{% capture cur_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
|
|
|
|
|
|
|
{% if cur_year != last_year %}
|
|
|
|
{% unless forloop.first %}</ul>{% endunless %}
|
|
|
|
<div class="year lead">{{ cur_year }}</div>
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{% assign last_year = cur_year %}
|
2020-12-04 09:18:25 +03:00
|
|
|
{% endif %}
|
2022-08-03 13:47:42 +03:00
|
|
|
|
2022-08-08 15:56:38 +03:00
|
|
|
<li>
|
2022-08-03 13:47:42 +03:00
|
|
|
{% assign ts = post.date | date: '%s' %}
|
|
|
|
<span class="date day" data-ts="{{ ts }}" data-df="DD">{{ post.date | date: "%d" }}</span>
|
|
|
|
<span class="date month small text-muted ml-1" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
|
|
|
|
{{ post.date | date: df_strftime_m }}
|
|
|
|
</span>
|
|
|
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
{% if forloop.last %}</ul>{% endif %}
|
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
{% endfor %}
|
2022-08-03 13:47:42 +03:00
|
|
|
|
2020-12-04 09:18:25 +03:00
|
|
|
</div>
|