samhuri.net/templates/posts-year.html
2019-12-04 17:19:08 -08:00

27 lines
593 B
HTML

{% extends "samhuri.net.html" %}
{% block body %}
<div class="container">
<h2>{{ year }}</h2>
{% for month in months %}
<h3>
<a href="/{{ path }}/{{ year }}/{{ month }}">{{ monthNames[month] }}</a>
</h3>
<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 %}