summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-08-15 19:27:09 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-08-15 19:27:09 +0200
commit9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee (patch)
tree7cef828f908b96b55559d6ae8b97a70b9443cd36 /templates/index.html
parentef35bb66e34354c1d6987acb4d2e1d3e6aae2664 (diff)
downloadjokevote-9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee.tar.gz
jokevote-9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee.zip
introduce featured tags
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 8af43ee..b940bb2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -79,14 +79,24 @@
</div>
{% endif %}
{% endwith %}
- {% if tags %}
+ {% if tags or featured %}
<div class="section">
+ {% if tags %}
{% for tag in tags %}
<div class="chip">
{{ tag }}
<a href="/{{ query(search=tags|reject('sameas', tag)|join('+')) }}"><i class="material-icons">close</i></a>
</div>
{% endfor %}
+ {% endif %}
+
+ {% if featured %}
+ <p>Empfohlen:
+ {% for tag in featured %}
+ <a href="/{{ query(search='_'+tag) }}">#{{ tag }}</a>
+ {% endfor %}
+ </p>
+ {% endif %}
</div>
{% endif %}
{% if jokes|length > 0 %}