From e6f48eed532560a2e709f7390bfffd8122a653fa Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 6 Jun 2020 17:27:47 +0200 Subject: Tag pages list posts tagged with their term. --- templates/tags/single.html | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'templates') 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 @@ -{{ term.name }} +{% extends "base.html" %} +{% block content %} +

Tag: {{ term.name }}

+ +

Poster merket med «{{ term.name }}»:

+ +{% for post in term.pages %} +
+ {% include "posts/header.html" %} +
+ {% if post.summary %} + {{ post.summary | safe }} + {% else %} + {{ post.content | safe }} + {% endif %} +
+ +
+{% endfor %} +{% endblock content %} -- cgit v1.2.3