-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (49 loc) · 1.64 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
layout: default
image: /assets/images/ogp_default.png
---
<div class="archive">
{% assign dateYear = "" %}
{% assign dateMonth = "" %}
{% for post in paginator.posts %}
{% assign currYear = post.date | date: "%Y" %}
{% assign currMonth = post.date | date: "%m" %}
{% if currYear != dateYear %}
{% assign dateYear = currYear %}
{% endif %}
{% if currMonth != dateMonth %}
{% if dateMonth != "" %}
<hr>
{% endif %}
<h2 class="archive-month">{{ currYear }}.{{ currMonth }}</h2>
{% assign dateMonth = currMonth %}
{% endif %}
<div class="archive-item">
<span class="archive-author fs-6">{{ post.author }}</span>
<span class="archive-emoji">{{ post.emoji }} </span>
<a href="{{ post.url | relative_url }}" class="archive-title fs-5">
{{ post.title }}
</a>
</div>
{% endfor %}
</div>
<hr>
<!-- Pagination links -->
<div class="pagination d-flex justify-content-between">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}"><i
class="previous fa-solid fa-left-long fa-2xl transition-arrow"></i></a>
{% else %}
<a href="{{ paginator.previous_page_path }}"><i
class="invisible previous fa-solid fa-left-long fa-2xl transition-arrow"></i></a>
{% endif %}
<span class="page_number fs-5">
{{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}"><i class="next fa-solid fa-right-long fa-2xl transition-arrow"></i></a>
{% else %}
<a href="{{ paginator.next_page_path }}"><i
class="invisible next fa-solid fa-right-long fa-2xl transition-arrow"></i></a>
{% endif %}
</div>