diff options
Diffstat (limited to 'archive.liquid')
-rw-r--r-- | archive.liquid | 47 |
1 files changed, 29 insertions, 18 deletions
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 --- -<div class="column"> - <h1> - {{ site.data[site.active_lang].strings.global.archive }} - </h1> +<h1> + {{ site.data[site.active_lang].strings.global.archive }} +</h1> +<div class="column"> {% for post in site.posts %} - {% unless post.next %} - <h2>{{ post.date | date: '%Y' }}</h2> - <ul> + <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 %} - </ul> - <h2>{{ post.date | date: '%Y' }}</h2> - <ul> + <h2>{{ post.date | date: '%Y' }}</h2> {% 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" }} - </div> - <div class="column pull-left"> - <a href="{{ site.baseurl}}{{ post.url }}"> + {% endunless %} + <div class="column"> + <a class="archive-post-title" href="{{ site.baseurl }}{{post.url }}"> {{ post.title }} </a> </div> + <div class="columns"> + <div class="column is-one-fifth"> + {% capture month%}{{ post.date | date: "%b" }}{% endcapture %}{{ post.date | date: "%d-%m-%Y" }} + <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> + </div> + <div class="column is-one-fifth"> + {% for tag in post.tags %} + {{ tag }}{% unless forloop.last %},{% endunless %} + {% endfor %} + <svg class="svg-icon-body" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-tag-fill" viewBox="0 0 16 16"> + <path d="M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/> + </svg> + </div> + </div> </div> {% endfor %} </div> + + |