blob: a2c8b9f9441dbc614e7e4c4fcf46727fc14bce4c (
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
|
{%- extends "base_plain.xhtml" -%}
{%- macro tag_title(label) -%}{{ label | capitalize }} Tag{%- endmacro -%}
{%- block style %}
<link href="/css/index.css" rel="stylesheet" />
{% endblock -%}
{%- macro tag_content(label) %}
<h4>Tag: {{ label | capitalize }}</h4>
<ul class="index">
{%- for item in articles -%}
{%- if label|lower in item.taglist -%}
{%- if item.updated -%}
{%- set postclass = "update" -%}
{%- set postverb = "Updated" -%}
{%- else -%}
{%- set postclass = "post" -%}
{%- set postverb = "Posted" -%}
{%- endif %}
<li><a href="{{ item.anchor }}">{{ item.title }}</a><br />
<span class="taglist">{{ item.taglist | join(", ") }}</span><br />
<span class="{{ postclass }}">({{ postverb }} {{ item.postdate }})</span></li>
{%- endif -%}
{%- endfor %}
</ul>
{% endmacro -%}
{%- macro tag_footer(anchor) -%}
{{ plain_footer ('tags/' ~ anchor) }}
{%- endmacro -%}
|