diff options
Diffstat (limited to 'project/templates/tags.html')
-rw-r--r-- | project/templates/tags.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/project/templates/tags.html b/project/templates/tags.html deleted file mode 100644 index be63920..0000000 --- a/project/templates/tags.html +++ /dev/null @@ -1,34 +0,0 @@ - -{%- extends "base.html" -%} - - - -{%- block title -%}Tags{%- endblock -%} - - - -{%- block style %} - <link href="/css/tags.css" rel="stylesheet" /> -{% endblock -%} - - - -{%- block content %} -<h4>Tags</h4> - -<ul> - {%- for tag in tags -%} - {%- set total = { 'value': 0 } -%} - {%- for item in articles -%} - {%- if tag in item.taglist -%} - {%- if total.update({'value': total.value + 1}) -%}{%- endif -%} - {%- endif -%} - {%- if item == articles | last %} - <li><a href="/tags/{{ tag }}.html">{{ tag }} ({{ total.value }})</a></li> - {%- endif -%} - {%- endfor -%} - {%- endfor %} -</ul> -{% endblock -%} - - |