blob: 0c8e031f12f56f50cab9349b07d1c0935680268a (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{% extends "index.html" %}
{% block title %}
{% if category == "medien" %}
{{ SITENAME }} | Medienmitteilungen
{% elif category == "pressreview" %}
{{ SITENAME }} | Pressereaktionen
{% else %}
{{ SITENAME }} | Articles in the {{ category }} category
{% endif %}
{% endblock %}
{% block content_title %}
{% if category == "medien" %}
<h1>Medienmitteilungen</h1>
{% elif category == "pressreview" %}
<h1>Pressereaktionen</h1>
{% else %}
<h1>Articles in the {{ category }} category</h1>
{% endif %}
{% endblock %}
{% block content %}
{% if category == "pressreview" %}
{% for article in dates %}
{% if (dates[loop.index-1].date.strftime("%Y")) != ((dates[loop.index-2]).date.strftime("%Y")) %}
<h2> {{ article.date.strftime("%Y") }} </h2>
{% endif %}
{% if (dates[loop.index-1].date.strftime("%Y%m%d")) != ((dates[loop.index-2]).date.strftime("%Y%m%d")) %}
<h3> {{ article.date.strftime("%-d. %B") }} </h3>
<ul>
{% endif %}
<li>
{{ article.publisher }}: <a href="{{ article.ext_url }}">{{ article.title }}</a>
</li>
{% if dates[loop.index] %}
{% if (dates[loop.index-1].date.strftime("%Y%m%d")) != ((dates[loop.index]).date.strftime("%Y%m%d")) %}
</ul>
{% endif %}
{% else %}
</ul>
{% endif %}
{% endfor %}
{% else %}
<ul>
{% for article in dates %}
<li>
<article class="hentry">
{{ article.date.strftime("%A, %b %-d, %Y") }} - <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a><br />
</article>
</li>
{% endfor %}
</ul>
{% endif %}
<h2>Abonniere diesen Kanal</h2>
<ul>
<li><a href="feeds/rss_{{ category }}.xml">RSS Feed</a> </li>
<li><a href="feeds/atom_{{ category }}.xml">ATOM Feed</a> </li>
</ul>
{% endblock %}
|