aboutsummaryrefslogtreecommitdiff
path: root/templates/posts.html
blob: 3d4184d932c383a9df1e11d3f2c350d4c9b27971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" %}
{%- block content %}
{%- set section_item = get_section(path="_index.md") %}
    <div>
      {%- for year, posts in section_item.pages | group_by(attribute="year") %}
      <h2>{{ year }}</h2>
      {%- for post in posts %}
      <p><a href="{{ post.permalink | safe }}" title="{{ post.title }}">{{ post.title }}</a> - {{ post.date | date(format="%F") }}</p>
      {%- endfor %}
      {%- endfor %}
    </div>
{%- endblock content %}