aboutsummaryrefslogtreecommitdiff
path: root/templates/posts.html
blob: f093e8e0b503d9ab9eb6dbcfe4c9004494d9c9a7 (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 %}