summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:27:47 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:27:47 +0200
commite6f48eed532560a2e709f7390bfffd8122a653fa (patch)
tree7748ab94f22ae4c67496691707d0344a583fc05a
parent1383fee0f3ee632110259218a20fbf5446814fd2 (diff)
downloadrabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.tar.gz
rabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.tar.bz2
rabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.zip
Tag pages list posts tagged with their term.
-rw-r--r--templates/tags/single.html27
1 files changed, 26 insertions, 1 deletions
diff --git a/templates/tags/single.html b/templates/tags/single.html
index 1e00fa6..ab0364c 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -1 +1,26 @@
-<span class="tag">{{ term.name }}</span>
+{% extends "base.html" %}
+{% block content %}
+<h1 class="tag">Tag: {{ term.name }}</h1>
+
+<p>Poster merket med &laquo;{{ term.name }}&raquo;:</p>
+
+{% for post in term.pages %}
+ <article class="post">
+ {% include "posts/header.html" %}
+ <section class="post-summary">
+ {% if post.summary %}
+ {{ post.summary | safe }}
+ {% else %}
+ {{ post.content | safe }}
+ {% endif %}
+ </section>
+ <footer>
+ {% if post.summary %}
+ <a href="{{ post.permalink }}">
+ {{ trans(key="moreprompt", lang=post.lang) }}
+ </a>
+ {% endif %}
+ </footer>
+ </article>
+{% endfor %}
+{% endblock content %}