2021-12-31 10:07:40 +00:00
|
|
|
{% extends 'includes/layout.njk' %}
|
2020-12-27 13:17:29 +00:00
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{% set categoriesList = list_categories({ show_count: false }) %}
|
|
|
|
{% set tagsList = list_tags({ show_count: false }) %}
|
|
|
|
{% set archivesList = list_archives({ show_count: false }) %}
|
|
|
|
|
2021-12-31 10:07:40 +00:00
|
|
|
{% if not is_year() %}
|
2020-12-27 13:17:29 +00:00
|
|
|
<div id="archive">
|
|
|
|
<h1>Archives</h1>
|
|
|
|
{% if theme.atom %}
|
|
|
|
<p>
|
|
|
|
The feed is available via
|
|
|
|
<a href="{{ theme.atom }}">atom</a>.
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if config.atom %}
|
|
|
|
<p>
|
|
|
|
The feed is available via
|
|
|
|
<a href="{{ config.atom }}">atom</a>.
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<aside>
|
|
|
|
<h2>Categories</h2>
|
|
|
|
{% if categoriesList %}
|
2021-12-31 10:07:40 +00:00
|
|
|
{{ categoriesList | safe}}
|
2020-12-27 13:17:29 +00:00
|
|
|
{% else %}
|
|
|
|
<p>None.</p>
|
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<aside>
|
|
|
|
<h2>Tags</h2>
|
|
|
|
{% if tagsList %}
|
2021-12-31 10:07:40 +00:00
|
|
|
{{ tagsList | safe }}
|
2020-12-27 13:17:29 +00:00
|
|
|
{% else %}
|
|
|
|
<p>None.</p>
|
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<aside>
|
|
|
|
<h2>Archives</h2>
|
|
|
|
{% if archivesList %}
|
2021-12-31 10:07:40 +00:00
|
|
|
{{ archivesList | safe }}
|
2020-12-27 13:17:29 +00:00
|
|
|
{% else %}
|
|
|
|
<p>None.</p>
|
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<h1>{{ page.month + '/' + page.year }}</h1>
|
|
|
|
{% for postItem in page.posts.toArray() %}
|
|
|
|
<div class="archive-item">
|
|
|
|
<a href="{{ url_for(postItem.path) }}">
|
|
|
|
{{ postItem.title }}
|
|
|
|
</a>
|
|
|
|
<time datetime="{{ date_xml(postItem.date) }}">
|
|
|
|
{{ date(postItem.date) }}
|
|
|
|
</time>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<div id="paginator">
|
|
|
|
{{ paginator() }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|