forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-year.html
33 lines (29 loc) · 1 KB
/
archive-year.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
---
layout: default
---
<div class="post">
<header class="post-header">
<h1 class="post-title"> <i class="fa-solid fa-calendar fa-sm"></i> {{ page.date | date: "%Y" }} </h1>
<p class="post-description"> an archive of posts from this year </p>
</header>
<article>
<div class="table-responsive">
<table class="table table-sm table-borderless">
{% for post in page.posts %}
<tr>
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
<td>
{% if post.redirect == blank %}
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
{% elsif post.redirect contains '://' %}
<a class="post-link" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
{% else %}
<a class="post-link" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</article>
</div>