aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/post.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base/templates/post.tmpl')
-rw-r--r--nikola/data/themes/base/templates/post.tmpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/nikola/data/themes/base/templates/post.tmpl b/nikola/data/themes/base/templates/post.tmpl
index fc0afba..cbb81ef 100644
--- a/nikola/data/themes/base/templates/post.tmpl
+++ b/nikola/data/themes/base/templates/post.tmpl
@@ -10,15 +10,18 @@
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
%if post.description():
- <meta name="description" itemprop="description" content="${post.description()}">
+ <meta name="description" content="${post.description()}">
%endif
<meta name="author" content="${post.author()}">
%if post.prev_post:
- <link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()}" type="text/html">
+ <link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html">
%endif
%if post.next_post:
- <link rel="next" href="${post.next_post.permalink()}" title="${post.next_post.title()}" type="text/html">
+ <link rel="next" href="${post.next_post.permalink()}" title="${post.next_post.title()|h}" type="text/html">
%endif
+ % if post.is_draft:
+ <meta name="robots" content="noindex">
+ % endif
${helper.open_graph_metadata(post)}
${helper.twitter_card_information(post)}
${helper.meta_translations(post)}
@@ -37,7 +40,7 @@
</nav>
</aside>
% if not post.meta('nocomments') and site_has_comments:
- <section class="comments">
+ <section class="comments hidden-print">
<h2>${messages("Comments")}</h2>
${comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path)}
</section>