summaryrefslogtreecommitdiff
path: root/archive.liquid
diff options
context:
space:
mode:
authorHombreLaser <buran@silosneeded.com>2024-07-13 14:05:07 -0600
committerHombreLaser <buran@silosneeded.com>2024-07-13 14:05:07 -0600
commit4039b9bfe2de55b75a550467eac0ca27c485afdd (patch)
treec0b8a7a6347c631103aafe674d4549d0cbc7de95 /archive.liquid
parent881f4e0a9f75df2eb230ced95a3823008100f777 (diff)
Improve archive and categories page layouts
Diffstat (limited to 'archive.liquid')
-rw-r--r--archive.liquid38
1 files changed, 22 insertions, 16 deletions
diff --git a/archive.liquid b/archive.liquid
index 74a8372..71ca8a9 100644
--- a/archive.liquid
+++ b/archive.liquid
@@ -9,22 +9,28 @@ permalink: /archive.html
</h1>
{% for post in site.posts %}
- {% unless post.next %}
- <h2>{{ post.date | date: '%Y' }}</h2>
- <ul>
- {% else %}
- {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
- {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
- {% if year != nyear %}
- </ul>
- <h2>{{ post.date | date: '%Y' }}</h2>
- <ul>
- {% endif %}
- {% endunless %}
- <li>
+ {% unless post.next %}
+ <h2>{{ post.date | date: '%Y' }}</h2>
+ <ul>
+ {% else %}
+ {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
+ {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
+ {% if year != nyear %}
+ </ul>
+ <h2>{{ post.date | date: '%Y' }}</h2>
+ <ul>
+ {% endif %}
+ {% endunless %}
+ <div class="columns">
+ <div class="column archive-date is-3">
+ {% capture month%}{{ post.date | date: "%b" }}{% endcapture %}
+ {{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e, %Y" }}
+ </div>
+ <div class="column pull-left">
<a href="{{ site.baseurl}}{{ post.url }}">
- {{ post.date | date: "%b %-d" }} - {{ post.title }}
+ {{ post.title }}
</a>
- </li>
- {% endfor %}
+ </div>
+ </div>
+ {% endfor %}
</div>