From 0044c08bb01e773cb212c305ff136bf45dc7c4a7 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 10 Nov 2024 19:13:53 -0600 Subject: Improve archive --- archive.liquid | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'archive.liquid') diff --git a/archive.liquid b/archive.liquid index 68e203b..b03d7e0 100644 --- a/archive.liquid +++ b/archive.liquid @@ -3,34 +3,45 @@ layout: default permalink: /archive.html --- -
-

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

+

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

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

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

-
    +
    + {% 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' }}

-
    +

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

    {% endif %} - {% endunless %} -
    -
    - {% capture month%}{{ post.date | date: "%b" }}{% endcapture %} - {{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e" }} -
    -
    - + {% endunless %} + +
    +
    + {% capture month%}{{ post.date | date: "%b" }}{% endcapture %}{{ post.date | date: "%d-%m-%Y" }} + + + +
    +
    + {% for tag in post.tags %} + {{ tag }}{% unless forloop.last %},{% endunless %} + {% endfor %} + + + +
    +
    {% endfor %}
    + + -- cgit v1.2.3