generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.liquid
More file actions
38 lines (37 loc) · 1.59 KB
/
archive.liquid
File metadata and controls
38 lines (37 loc) · 1.59 KB
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
---
layout: default
---
<div class="post">
<header class="post-header">
{% if page.type == 'categories' %}
<h1 class="post-title"><i class="fa-solid fa-tag fa-sm"></i> {{ page.title }}</h1>
<p class="post-description">an archive of {{ page.collection_name }} in this category</p>
{% elsif page.type == 'year' %}
<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 {{ page.collection_name }} from this year</p>
{% elsif page.type == 'tags' %}
<h1 class="post-title"><i class="fa-solid fa-hashtag fa-sm"></i> {{ page.title }}</h1>
<p class="post-description">an archive of {{ page.collection_name }} with this tag</p>
{% endif %}
</header>
<article class="archive">
<div class="table-responsive">
<table class="table table-sm table-borderless">
{% for document in page.documents %}
<tr>
<th scope="row">{{ document.date | date: '%b %d, %Y' }}</th>
<td>
{% if document.redirect == blank %}
<a class="post-link" href="{{ document.url | relative_url }}">{{ document.title }}</a>
{% elsif document.redirect contains '://' %}
<a class="post-link" href="{{ document.redirect }}" target="_blank">{{ document.title }}</a>
{% else %}
<a class="post-link" href="{{ document.redirect | relative_url }}">{{ document.title }}</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</article>
</div>