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 %}
|
2019-05-29 20:34:47 +01:00
|
|
|
<link rel="canonical" href="{{ category.url }}" />
|
|
|
|
<link rel="alternate" type="application/rss+xml" title="{{ category.title }} RSS feed" href="{{ category.feed }}{{ fnames.rss }}" />
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="{{ category.title }} ATOM feed" href="{{ category.feed }}{{ fnames.atom }}" />
|
|
|
|
<link rel="alternate" type="application/json" title="{{ category.title }} JSON feed" href="{{ category.feed }}{{ fnames.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 %}
|
2020-05-17 18:14:43 +01:00
|
|
|
<div id="pagination">
|
2019-06-17 12:00:57 +01:00
|
|
|
<ol>
|
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-06-17 12:00:57 +01:00
|
|
|
</ol>
|
2020-05-17 18:14:43 +01:00
|
|
|
</div>
|
2019-01-21 16:10:27 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-07-20 16:45:42 +01:00
|
|
|
{% block content %}
|
2020-05-17 18:14:43 +01:00
|
|
|
<div id="main" class="h-feed hatom {{ category.name }}">
|
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 %}
|
2020-05-17 18:14:43 +01:00
|
|
|
</div>
|
2019-01-21 16:10:27 +00:00
|
|
|
{% endif %}
|
2020-05-17 18:14:43 +01:00
|
|
|
<div class="year">
|
|
|
|
<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 %}
|
2020-05-17 18:14:43 +01:00
|
|
|
</div>
|
2019-01-21 16:10:27 +00:00
|
|
|
{% endif %}
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endfor %}
|
2020-05-17 18:14:43 +01:00
|
|
|
</div>
|
2018-07-20 16:45:42 +01:00
|
|
|
{% endblock %}
|