decentralized-id.github.io/_layouts/posts.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2019-03-28 19:40:33 -04:00
---
layout: archive
---
{{ content }}
<ul class="taxonomy__index">
2023-02-10 04:44:06 -05:00
{% assign postsInYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
2019-03-28 19:40:33 -04:00
{% for year in postsInYear %}
<li>
<a href="#{{ year.name }}">
<strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
</a>
</li>
{% endfor %}
</ul>
2023-02-10 04:44:06 -05:00
{% assign entries_layout = page.entries_layout | default: 'list' %}
{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
2019-03-28 19:40:33 -04:00
{% for year in postsByYear %}
<section id="{{ year.name }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ year.name }}</h2>
2023-02-10 04:44:06 -05:00
<div class="entries-{{ entries_layout }}">
2019-03-28 19:40:33 -04:00
{% for post in year.items %}
2023-02-10 04:44:06 -05:00
{% include archive-single.html type=entries_layout %}
2019-03-28 19:40:33 -04:00
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
</section>
{% endfor %}