summaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/story.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base/templates/story.tmpl')
-rw-r--r--nikola/data/themes/base/templates/story.tmpl37
1 files changed, 29 insertions, 8 deletions
diff --git a/nikola/data/themes/base/templates/story.tmpl b/nikola/data/themes/base/templates/story.tmpl
index 7406f05..e3e3054 100644
--- a/nikola/data/themes/base/templates/story.tmpl
+++ b/nikola/data/themes/base/templates/story.tmpl
@@ -1,16 +1,37 @@
## -*- coding: utf-8 -*-
-<%inherit file="post.tmpl"/>
<%namespace name="helper" file="post_helper.tmpl"/>
+<%namespace name="pheader" file="post_header.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
+<%inherit file="post.tmpl"/>
+
<%block name="extra_head">
-${helper.twitter_card_information(post)}
+ ${parent.extra_head()}
+ % if post.meta('keywords'):
+ <meta name="keywords" content="${post.meta('keywords')|h}">
+ % endif
+ <meta name="author" content="${post.author()}">
+ ${helper.open_graph_metadata(post)}
+ ${helper.twitter_card_information(post)}
+ ${helper.meta_translations(post)}
+ %if post.description():
+ <meta name="description" itemprop="description" content="${post.description()}">
+ %endif
</%block>
+
<%block name="content">
-%if title and not post.meta('hidetitle'):
- <h1>${title}</h1>
-%endif
+<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
+ <header>
+ ${pheader.html_title()}
+ ${pheader.html_translations(post)}
+ </header>
+ <div itemprop="articleBody text">
${post.text()}
-%if enable_comments and not post.meta('nocomments'):
- ${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
-%endif
+ </div>
+ %if site_has_comments and enable_comments and not post.meta('nocomments'):
+ <section class="comments">
+ <h2>${messages("Comments")}</h2>
+ ${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
+ </section>
+ %endif
+</article>
</%block>