diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/authors/list.html | 5 | ||||
-rw-r--r-- | templates/authors/single.html | 24 |
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 %} |