diff options
Diffstat (limited to 'nikola/data/themes/base/templates/authorindex.tmpl')
| -rw-r--r-- | nikola/data/themes/base/templates/authorindex.tmpl | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/nikola/data/themes/base/templates/authorindex.tmpl b/nikola/data/themes/base/templates/authorindex.tmpl index 34cb20b..fe9d39e 100644 --- a/nikola/data/themes/base/templates/authorindex.tmpl +++ b/nikola/data/themes/base/templates/authorindex.tmpl @@ -1,13 +1,21 @@ ## -*- coding: utf-8 -*- <%inherit file="index.tmpl"/> +<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/> + +<%block name="content_header"> + <header> + <h1>${title|h}</h1> + %if description: + <p>${description}</p> + %endif + <div class="metadata"> + ${feeds_translations.feed_link(author, kind)} + ${feeds_translations.translation_link(kind)} + </div> + </header> +</%block> <%block name="extra_head"> ${parent.extra_head()} - %if len(tranlations) > 1 and generate_atom: - %for language in sorted(translations): - <link rel="alternate" type="application/atom+xml" title="Atom for the ${author|h} section (${language})" href="${_link(kind + "_atom", author, language)}"> - %endfor - %elif generate_atom: - <link rel="alternate" type="application/atom+xml" title="Atom for the ${author|h} section" href="${_link("author" + "_atom", author)}"> - %endif + ${feeds_translations.head(author, kind, rss_override=False)} </%block> |
