20 lines
444 B
HTML
20 lines
444 B
HTML
---
|
|
layout: default
|
|
title: Blog
|
|
---
|
|
|
|
{% assign grouped_posts = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
|
|
|
{% for group in grouped_posts %}
|
|
<h2>{{ group.name }}</h2>
|
|
<ul>
|
|
{% for post in group.items %}
|
|
<li>
|
|
|
|
<span>{{ post.date | date: "%Y-%m-%d" }}:</span>
|
|
<a href="{{ post.url }}">{{ post.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|