aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog_archive.html
blob: b06bdb20943ab97f6db9fb93877c28406ebf70bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% extends "base.html" %}
{% block title %}
Weblog archive - Yaroslav's weblog
{% endblock %}
{% block header %}
<h1>Yaroslav's weblog archive</h1>
{% endblock %}
{% block content %}
{% set section = get_section(path="weblog/_index.md") %}
<div class="post-container">
  {% 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 %}