samhuri.net/Tests/test-posts/in/templates/posts-archive.html
Sami Samhuri 652d192560 Hide .html extensions on all pages by default
This uses the same old page-title/index.html trick that was used before.
2019-12-10 00:27:56 -08:00

36 lines
792 B
HTML

{% extends "site.html" %}
{% block body %}
<h1>{{ title }}</h1>
{% for year in years %}
<div class="year">
<h2><a href="{{ year.path }}">{{ year.title }}</a></h2>
{% for month in year.months %}
<h3>
<a href="{{ month.path }}">{{ month.name }}</a>
</h3>
<ul class="archive">
{% for post in month.posts %}
<li>
{% if post.isLink %}
<a href="{{ post.link }}">&rarr; {{ post.title }}</a>
{% else %}
<a href="{{ post.path }}">{{ post.title }}</a>
{% endif %}
<time>{{ post.day }} {{ month.abbreviation }}</time>
{% if post.isLink %}
<a class="permalink" href="{{ post.path }}">&infin;</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
</div>
{% endfor %}
{% endblock %}