nasg/templates/Flat.j2.html

34 lines
1.2 KiB
HTML
Raw Normal View History

2018-07-20 16:45:42 +01:00
{% extends "base.j2.html" %}
{% block lang %}{% endblock %}
2018-07-20 16:45:42 +01:00
{% block title %}{{ category.title }}{% endblock %}
{% block meta %}
<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 }}" />
<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 %}
2018-07-20 16:45:42 +01:00
{% block content %}
2019-06-19 13:19:20 +01:00
<main id="main" class="h-feed hatom">
2018-07-20 16:45:42 +01:00
{% set year = [0] %}
{% for post in posts %}
{% set _year = year.pop() %}
{% if _year != post.copyrightYear %}
{% if not loop.first %}
</section>
{% endif %}
<section class="year">
<h2>{{ post.copyrightYear }}</h2>
2018-07-20 16:45:42 +01:00
{% endif %}
{% set _ = year.append(post.copyrightYear)%}
{% include 'meta-article.j2.html' %}
{% if loop.last %}
</section>
{% endif %}
2018-07-20 16:45:42 +01:00
{% endfor %}
</main>
2018-07-20 16:45:42 +01:00
{% endblock %}