summaryrefslogtreecommitdiffstats
path: root/templates/authors
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-07-07 15:51:57 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-07-07 16:43:48 +0200
commit9beb127bb511b94998c5d236553e58a9fb1c4636 (patch)
tree125d61fa2a8167d4847acc69cc64e5afafc9c6db /templates/authors
parent83f2240144f03a0e46f593a6e240ed0ccb2a9173 (diff)
downloadrabalderz-9beb127bb511b94998c5d236553e58a9fb1c4636.tar.gz
rabalderz-9beb127bb511b94998c5d236553e58a9fb1c4636.tar.bz2
rabalderz-9beb127bb511b94998c5d236553e58a9fb1c4636.zip
Add authors as taxonomies.
Makes more sence, and allows users to subscribe to author feeds.
Diffstat (limited to 'templates/authors')
-rw-r--r--templates/authors/list.html5
-rw-r--r--templates/authors/single.html24
2 files changed, 29 insertions, 0 deletions
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 @@
+<ul class="authorlist">
+ {% for t in terms %}
+ <li class="author">{{ t.name }}</li>
+ {% endfor %}
+</ul>
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 %}
+ <h1 class="author">{{ trans(key="posts_by", lang=lang) }} {{ term.name }}</h1>
+
+{% 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 %}