all repos — nasg @ 67f2978aeb67fce0e6b717636f1364c8c23d1457

templates/Flat.j2.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
{% extends "base.j2.html" %}
{% block lang %}{% endblock %}

{% 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 }}" />
{% endblock %}

{% block content %}
<div id="main" class="h-feed hatom {{ category.name }}">

{% set year = [0] %}
{% for post in posts %}
    {% set _year = year.pop() %}
    {% if _year != post.copyrightYear %}
        {% if not loop.first %}
        </div>
        {% endif %}
        <div class="year">
        <h2>{{ post.copyrightYear }}</h2>
    {% endif %}
    {% set _ = year.append(post.copyrightYear)%}
        {% include 'meta-article.j2.html' %}
    {% if loop.last %}
    </div>
    {% endif %}
{% endfor %}
</div>
{% endblock %}