From 9beb127bb511b94998c5d236553e58a9fb1c4636 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 7 Jul 2020 15:51:57 +0200 Subject: Add authors as taxonomies. Makes more sence, and allows users to subscribe to author feeds. --- templates/authors/list.html | 5 +++++ templates/authors/single.html | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 templates/authors/list.html create mode 100644 templates/authors/single.html (limited to 'templates/authors') diff --git a/templates/authors/list.html b/templates/authors/list.html new file mode 100644 index 0000000..0a18a85 --- /dev/null +++ b/templates/authors/list.html @@ -0,0 +1,5 @@ + diff --git a/templates/authors/single.html b/templates/authors/single.html new file mode 100644 index 0000000..f61ac4b --- /dev/null +++ b/templates/authors/single.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block content %} +

{{ trans(key="posts_by", lang=lang) }} {{ 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