2018-07-20 16:45:42 +01:00
|
|
|
{% extends "base.j2.html" %}
|
|
|
|
{% block lang %}{% endblock %}
|
2018-11-10 20:49:13 +00:00
|
|
|
|
2018-07-20 16:45:42 +01:00
|
|
|
{% block title %}{{ category.title }}{% endblock %}
|
|
|
|
{% block meta %}
|
2018-10-10 22:36:48 +01:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="{{ category.title }} RSS feed" href="{{ category.feed }}" />
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="{{ category.title }} ATOM feed" href="{{ category.feed }}atom.xml" />
|
2019-03-22 15:49:24 +00:00
|
|
|
<link rel="alternate" type="application/json" title="{{ category.title }} JSON feed" href="{{ category.feed }}index.json" />
|
2019-05-22 20:54:56 +01:00
|
|
|
<link rel="feed" title="{{ category.title}} feed" href="http://www.unmung.com/feed?feed={{ category.feed|urlencode }}" />
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endblock %}
|
2019-01-21 16:10:27 +00:00
|
|
|
|
|
|
|
{% block pagination %}
|
2019-02-07 19:27:15 +00:00
|
|
|
{% if category.paginated %}
|
2019-01-21 16:10:27 +00:00
|
|
|
<nav>
|
|
|
|
<ul>
|
2019-01-31 21:23:16 +00:00
|
|
|
{% for y, url in category.years.items() %}
|
2019-02-16 00:14:12 +00:00
|
|
|
{% if (y == category.year) or (not category.year and loop.first) %}
|
2019-01-21 16:10:27 +00:00
|
|
|
<li>
|
2019-01-31 21:23:16 +00:00
|
|
|
<span>
|
|
|
|
{{ y }}
|
2019-01-21 16:10:27 +00:00
|
|
|
</span>
|
|
|
|
</li>
|
2019-01-31 21:23:16 +00:00
|
|
|
{% else %}
|
2019-01-21 16:10:27 +00:00
|
|
|
<li>
|
2019-02-16 00:14:12 +00:00
|
|
|
<a href="{{ url|relurl(baseurl) }}">
|
2019-01-31 21:23:16 +00:00
|
|
|
<strong>{{ y }}</strong>
|
2019-01-21 16:10:27 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2019-01-31 21:23:16 +00:00
|
|
|
{% endfor %}
|
2019-01-21 16:10:27 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-07-20 16:45:42 +01:00
|
|
|
{% block content %}
|
2019-02-08 23:32:52 +00:00
|
|
|
<main class="h-feed hatom">
|
2018-07-20 16:45:42 +01:00
|
|
|
|
|
|
|
{% set year = [0] %}
|
|
|
|
{% for post in posts %}
|
|
|
|
{% set _year = year.pop() %}
|
2019-02-07 19:27:15 +00:00
|
|
|
{% if not category.paginated and _year != post.copyrightYear %}
|
2019-01-21 16:10:27 +00:00
|
|
|
{% if not loop.first %}
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
<section>
|
2019-02-07 19:27:15 +00:00
|
|
|
<h2>{{ post.copyrightYear }}</h2>
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endif %}
|
2019-02-07 19:27:15 +00:00
|
|
|
{% set _ = year.append(post.copyrightYear)%}
|
|
|
|
{% include 'meta-article.j2.html' %}
|
2019-02-16 00:14:12 +00:00
|
|
|
{% if not category.paginated and loop.last %}
|
2019-01-21 16:10:27 +00:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endfor %}
|
2018-08-13 14:57:27 +01:00
|
|
|
</main>
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endblock %}
|