Bauke/tildes-issue-log
Bauke
/
tildes-issue-log
Archived
1
Fork 0
This repository has been archived on 2022-10-04. You can view files and clone it, but cannot push or open issues or pull requests.
tildes-issue-log/source/pages/templates/posts.html

29 lines
761 B
HTML
Raw Normal View History

{% set pageTitle = 'Tildes Issue Log' %}
{% set toRoot = '.' %}
{% extends "base.html" %}
{% block body %}
<main id="main">
<div id="posts">
<h2>All Posts</h2>
{% for list in posts %}
{% set parent_first_loop = loop.first %}
<div class="year">
<h3>{{ list.year }}</h3>
<ul class="posts">
{% for post in list.posts %}
{% set is_newest = parent_first_loop and loop.last %}
<li class="post {{ 'newest' if is_newest }}">
<a href="{{toRoot }}/{{ post.url }}">
{{ months[post.month]|capitalize }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</main>
{% endblock %}