aboutsummaryrefslogtreecommitdiff
path: root/templates/archive.html
blob: c3eb817ac0bf309edfe4de2bbf04c39766852d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% extends "base.html" %}
{% block content %}
{% set section = get_section(path="weblog/_index.md") %}
<div class="post-container">
  <h2>Archive</h2>
  {% for year, posts in section.pages | group_by(attribute="year") %}
  <h3>{{ year }}</h3>
  <ul>
    {% for post in posts %}
    <li><span class="publish-date">{{ post.date | date }}</span> - <a href="{{ post.permalink }}">{{ post.title }}</a></li>
    {% endfor %}
  </ul>
  {% endfor %}
</div>
{% endblock %}