From bda028e1db07d786ec0cf48feeae199679f07d70 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 15 Nov 2016 15:16:23 +0100 Subject: Add support for entry tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- templates/entry.html | 10 ++++++++++ templates/layout.html | 14 ++++++++++++++ templates/tags.html | 12 ++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 templates/tags.html (limited to 'templates') diff --git a/templates/entry.html b/templates/entry.html index f44567a..619c429 100644 --- a/templates/entry.html +++ b/templates/entry.html @@ -9,6 +9,16 @@
{{ content }}
+
+ {% if 'tags' in entry %} +
+ Tags: + {% for tag in entry['tags'] %} + {{ tag }} + {% endfor %} +
+ {% endif %} +
diff --git a/templates/tags.html b/templates/tags.html new file mode 100644 index 0000000..b795e5e --- /dev/null +++ b/templates/tags.html @@ -0,0 +1,12 @@ +{% extends 'layout.html' %} + +{% block content %} +
+

{{ title }}

+
    + {% for tag in entries %} +
  • {{ tag }} ({{ entries[tag] }})
  • + {% endfor %} +
+
+{% endblock %} -- cgit v1.2.3-54-g00ecf