From 584613937a7cc981d2bd5c0913dd5f906f2fdbd9 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 26 Jul 2025 22:10:39 -0600 Subject: Improve page --- archive.liquid | 52 +++++++++++++++++----------------------------------- 1 file changed, 17 insertions(+), 35 deletions(-) (limited to 'archive.liquid') 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 --- -
-

- {{ site.data[site.active_lang].strings.global.archive }} -

- {% for post in site.posts %} -
- {% unless post.next %} +

+ {{ site.data[site.active_lang].strings.global.archive }} +

+{% for post in site.posts %} +
+ {% unless post.next %} +

{{ post.date | date: '%Y' }}

+{% else %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} + {% if year != nyear %}

{{ post.date | date: '%Y' }}

- {% else %} - {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} - {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} - {% if year != nyear %} -

{{ post.date | date: '%Y' }}

- {% endif %} - {% endunless %} -
- - -
-
- {% endfor %} -
- - + {% endif %} + {% endunless %} + {% include archived_post.liquid %} +
+{% endfor %} -- cgit v1.2.3