aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/author.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base/templates/author.tmpl')
-rw-r--r--nikola/data/themes/base/templates/author.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/nikola/data/themes/base/templates/author.tmpl b/nikola/data/themes/base/templates/author.tmpl
new file mode 100644
index 0000000..983f118
--- /dev/null
+++ b/nikola/data/themes/base/templates/author.tmpl
@@ -0,0 +1,28 @@
+## -*- coding: utf-8 -*-
+<%inherit file="list_post.tmpl"/>
+<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/>
+
+<%block name="extra_head">
+ ${feeds_translations.head(author, kind, rss_override=False)}
+</%block>
+
+<%block name="content">
+<article class="authorpage">
+ <header>
+ <h1>${title|h}</h1>
+ %if description:
+ <p>${description}</p>
+ %endif
+ <div class="metadata">
+ ${feeds_translations.feed_link(author, kind)}
+ </div>
+ </header>
+ %if posts:
+ <ul class="postlist">
+ % for post in posts:
+ <li><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time> <a href="${post.permalink()}" class="listtitle">${post.title()|h}</a></li>
+ % endfor
+ </ul>
+ %endif
+</article>
+</%block>