summaryrefslogtreecommitdiff
path: root/project/templates/tags/politics.html
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/tags/politics.html')
-rw-r--r--project/templates/tags/politics.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/project/templates/tags/politics.html b/project/templates/tags/politics.html
new file mode 100644
index 0000000..e7d0790
--- /dev/null
+++ b/project/templates/tags/politics.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Politics Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Politics</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'politics' in item.taglist -%}
+ {%- if item.updated -%}{%- set postclass = "update" -%}{%- else -%}{%- set postclass = "post" -%}{%- endif -%}
+ {%- if item.updated -%}{%- set postverb = "Updated" -%}{%- else -%}{%- 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>
+
+{% endblock %}
+
+