samhuri.net/templates/posts-year.html

28 lines
595 B
HTML

{% extends "samhuri.net.html" %}
{% block body %}
<div class="container">
<h1>{{ title }}</h1>
{% for month in months %}
<h2>
<a href="/{{ path }}/{{ year }}/{{ month }}">{{ monthNames[month] }}</a>
</h2>
<ul class="archive">
{% for post in postsByMonth[month] %}
<li>
{% if post.isLink %}
<a href="{{ post.path }}">&rarr; {{ post.title }}</a>
{% else %}
<a href="{{ post.path }}">{{ post.title }}</a>
{% endif %}
<time>{{ post.day }} {{ monthAbbreviations[month] }}</time>
</li>
{% endfor %}
</ul>
{% endfor %}
</div>
{% endblock %}