summaryrefslogtreecommitdiff
path: root/archive.liquid
diff options
context:
space:
mode:
authorHombreLaser <buran@silosneeded.com>2025-07-26 22:10:39 -0600
committerHombreLaser <buran@silosneeded.com>2025-07-26 22:10:39 -0600
commit584613937a7cc981d2bd5c0913dd5f906f2fdbd9 (patch)
tree0899e9ece2e7977ea0a9ea6b30eeca90c101eb08 /archive.liquid
parent0033427fa1ef0372671acac085a248125b9be5b5 (diff)
Improve page
Diffstat (limited to 'archive.liquid')
-rw-r--r--archive.liquid52
1 files changed, 17 insertions, 35 deletions
diff --git a/archive.liquid b/archive.liquid
index ef2ff34..3e50bbf 100644
--- a/archive.liquid
+++ b/archive.liquid
@@ -1,40 +1,22 @@
---
-layout: default
+layout: page
permalink: /archive.html
---
-<div class="column">
- <h1>
- {{ site.data[site.active_lang].strings.global.archive }}
- </h1>
- {% for post in site.posts %}
- <div class="column">
- {% unless post.next %}
+<h1>
+ {{ site.data[site.active_lang].strings.global.archive }}
+</h1>
+{% for post in site.posts %}
+ <div class="column">
+ {% unless post.next %}
+ <h2>{{ post.date | date: '%Y' }}</h2>
+{% else %}
+ {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
+ {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
+ {% if year != nyear %}
<h2>{{ post.date | date: '%Y' }}</h2>
- {% else %}
- {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
- {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
- {% if year != nyear %}
- <h2>{{ post.date | date: '%Y' }}</h2>
- {% endif %}
- {% endunless %}
- <div class="columns">
- <div class="archive-post-date column is-2">
- <p class="archive-post-date">
- <svg class="svg-icon-body" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar-event-fill" viewBox="0 0 16 16">
- - <path d="M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v1h16V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4zM16 14V5H0v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2m-3.5-7h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5"/>
- - </svg>
- {% capture month%}{{ post.date | date: "%b" }}{% endcapture %}{{ post.date | date: "%d-%m-%Y" }}
- </p>
- </div>
- <div class="column">
- <a class="archive-post-title" href="{{ site.baseurl }}{{post.url }}">
- {{ post.title }}
- </a>
- </div>
- </div>
- </div>
- {% endfor %}
-</div>
-
-
+ {% endif %}
+ {% endunless %}
+ {% include archived_post.liquid %}
+ </div>
+{% endfor %}