Navigation Menu

Skip to content

Commit

Permalink
Jinjify and add missing smartjoin call
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 15, 2018
1 parent 60bee00 commit a8b4e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/post.tmpl
Expand Up @@ -8,7 +8,7 @@
{% block extra_head %}
{{ super() }}
{% if post.meta('keywords') %}
<meta name="keywords" content="{{ post.meta('keywords')|e }}">
<meta name="keywords" content="{{ smartjoin(', ', post.meta('keywords'))|e }}">
{% endif %}
<meta name="author" content="{{ post.author()|e }}">
{% if post.prev_post %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootstrap4-jinja/templates/post.tmpl
Expand Up @@ -9,7 +9,7 @@
{% block extra_head %}
{{ super() }}
{% if post.meta('keywords') %}
<meta name="keywords" content="{{ post.meta('keywords')|e }}">
<meta name="keywords" content="{{ smartjoin(', ', post.meta('keywords'))|e }}">
{% endif %}
{% if post.description() %}
<meta name="description" itemprop="description" content="{{ post.description()|e }}">
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootstrap4/templates/post.tmpl
Expand Up @@ -9,7 +9,7 @@
<%block name="extra_head">
${parent.extra_head()}
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
<meta name="keywords" content="${smartjoin(', ', post.meta('keywords'))|h}">
% endif
%if post.description():
<meta name="description" itemprop="description" content="${post.description()|h}">
Expand Down

0 comments on commit a8b4e6f

Please sign in to comment.