-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2024.html
35 lines (33 loc) · 1.22 KB
/
2024.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: "Posts in 2024"
permalink: /2024/
layout: archive
author_profile: false
---
<ul class="taxonomy__index">
{% assign postsByYearMonth = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y-%m"' %}
{% assign postsIn2024 = postsByYearMonth | where: 'name', '2024' %}
{% for year in postsByYearMonth %}
<li>
<a href="#{{ year.name }}">
<strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
</a>
</li>
{% endfor %}
</ul>
{% assign entries_layout = page.entries_layout | default: 'list' %}
<!-- {% assign postsIn2024 = postsInYear | where: 'name', '2024' %} -->
{% for year in postsByYearMonth %}
<section id="{{ year.name }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ year.name }}</h2>
<div class="entries-{{ entries_layout }}">
{% for post in year.items %}
{% include archive-single.html type=entries_layout %}
{% endfor %}
</div>
<div class="back-to-top-container">
<a href="#page-title" class="back-to-top">BACK TO TOP ↑</a>
<a href="#{{ year.name }}" class="back-to-top">BACK TO {{ year.name }} ↑</a>
</div>
</section>
{% endfor %}