Browse Source

Archiv incl. Kategorien

master
Christian Aust 2 months ago
parent
commit
bc009c9996
  1. 12
      archiv.md

12
archiv.md

@ -3,6 +3,18 @@ layout: page
title: Archiv
---
{% assign postsByCategory = site.posts | group_by_exp: "post", "post.category" %}
{% for category in postsByCategory %}
<h2>{{ category.name }}</h2>
<ul>
{% for post in category.items %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
-----
Alle Texte nach Jahr sortiert.
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}

Loading…
Cancel
Save