diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-11-26 20:17:43 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-11-26 20:17:43 +1300 |
commit | 14025d22ce3d66c9d235e57221ec4653e00f972c (patch) | |
tree | dac7c0f2cd22007aa1c396b460a1f2d90445a4d3 /project/templates/tags.html | |
parent | 03ea6ba48bfbb25dc74a0a369b5aa15bf10e91b9 (diff) |
Switched to .xhtml extension, fixed some minor bugs
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 -%} - - |