Skip to content

Commit

Permalink
Update archiv.md
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored Feb 10, 2024
1 parent 5291493 commit fc69552
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions archiv.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
layout: page
title: Archiv
years: ["2024","2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014"]
---

<div class="row">
<div class="col-sm-6">
<div class="list-group">

<div class="panel-heading" markdown="1">

{% for year in page.years %}
<div class="panel-heading" markdown="1">
{% assign current_year = 'now' | date: "%Y" %}
{% assign start_year = 2014 %}
{% for year in (start_year..current_year) reversed %}
{% capture current_year %}{{ year }}{% endcapture %}
### {{ year }}
<ul class="posts">
{% for post in site.posts %}
{% assign y = post.date | date: "%Y" %}
{% if y == year %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
<ul class="posts">
{% for post in site.posts %}
{% assign y = post.date | date: "%Y" %}
{% if y == current_year %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}

</div>
Expand Down

0 comments on commit fc69552

Please sign in to comment.