Skip to content

Commit

Permalink
Fix #2694 -- remove misplaced meta description tags
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 26, 2017
1 parent ef4ecc7 commit ad6b25a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -29,6 +29,7 @@ Features
Bugfixes
--------

* Remove misplaced and duplicated meta description tags (Issue #2694)
* Fix crash if ``PAGE_INDEX`` is enabled and make them actually work
(Issue #2646)
* Ignore ``NEW_POST_DATE_PATH`` when creating pages (Issue #2699)
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base-jinja/templates/post.tmpl
Expand Up @@ -9,9 +9,6 @@
{% if post.meta('keywords') %}
<meta name="keywords" content="{{ post.meta('keywords')|e }}">
{% endif %}
{% if post.description() %}
<meta name="description" content="{{ post.description()|e }}">
{% endif %}
<meta name="author" content="{{ post.author()|e }}">
{% if post.prev_post %}
<link rel="prev" href="{{ post.prev_post.permalink() }}" title="{{ post.prev_post.title()|e }}" type="text/html">
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base-jinja/templates/post_header.tmpl
Expand Up @@ -46,9 +46,6 @@
{% if post.meta('link') %}
<p class="linkline"><a href="{{ post.meta('link') }}">{{ messages("Original site") }}</a></p>
{% endif %}
{% if post.description() %}
<meta name="description" itemprop="description" content="{{ post.description()|e }}">
{% endif %}
</div>
{{ html_translations(post) }}
</header>
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base/templates/post.tmpl
Expand Up @@ -9,9 +9,6 @@
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
%if post.description():
<meta name="description" content="${post.description()|h}">
%endif
<meta name="author" content="${post.author()|h}">
%if post.prev_post:
<link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html">
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base/templates/post_header.tmpl
Expand Up @@ -46,9 +46,6 @@
% if post.meta('link'):
<p class="linkline"><a href="${post.meta('link')}">${messages("Original site")}</a></p>
% endif
%if post.description():
<meta name="description" itemprop="description" content="${post.description()|h}">
%endif
</div>
${html_translations(post)}
</header>
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/bootstrap3-jinja/templates/post.tmpl
Expand Up @@ -9,9 +9,6 @@
{% if post.meta('keywords') %}
<meta name="keywords" content="{{ post.meta('keywords')|e }}">
{% endif %}
{% if post.description() %}
<meta name="description" itemprop="description" content="{{ post.description()|e }}">
{% endif %}
<meta name="author" content="{{ post.author()|e }}">
{% if post.prev_post %}
<link rel="prev" href="{{ post.prev_post.permalink() }}" title="{{ post.prev_post.title()|e }}" type="text/html">
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/bootstrap3/templates/post.tmpl
Expand Up @@ -9,9 +9,6 @@
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
%if post.description():
<meta name="description" itemprop="description" content="${post.description()|h}">
%endif
<meta name="author" content="${post.author()|h}">
%if post.prev_post:
<link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html">
Expand Down

0 comments on commit ad6b25a

Please sign in to comment.