diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-06 17:27:47 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-06 17:27:47 +0200 |
commit | e6f48eed532560a2e709f7390bfffd8122a653fa (patch) | |
tree | 7748ab94f22ae4c67496691707d0344a583fc05a /templates | |
parent | 1383fee0f3ee632110259218a20fbf5446814fd2 (diff) | |
download | rabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.tar.gz rabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.tar.bz2 rabalderz-e6f48eed532560a2e709f7390bfffd8122a653fa.zip |
Tag pages list posts tagged with their term.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/tags/single.html | 27 |
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 «{{ term.name }}»:</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 %} |