Skip to content

Commit

Permalink
Avoid undefined variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 16, 2017
1 parent 342779a commit 5f5f6db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nikola/data/themes/base-jinja/templates/base_helper.tmpl
Expand Up @@ -42,7 +42,7 @@ lang="{{ lang }}">
{% if meta_generator_tag %}
<meta name="generator" content="Nikola (getnikola.com)">
{% endif %}
{{ feeds_translations.head(classification=None, kind=kind, other=False) }}
{{ feeds_translations.head(classification=None, kind='index', other=False) }}
<link rel="canonical" href="{{ abs_link(permalink) }}">

{% if favicons %}
Expand Down Expand Up @@ -101,7 +101,7 @@ lang="{{ lang }}">

{# This function is deprecated; use feed_helper directly. #}
{% macro html_feedlinks() %}
{{ feeds_translations.head(classification=None, kind=kind, other=False) }}
{{ feeds_translations.head(classification=None, kind='index', other=False) }}
{% endmacro %}

{% macro html_translations() %}
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/base/templates/base_helper.tmpl
Expand Up @@ -42,7 +42,7 @@ lang="${lang}">
% if meta_generator_tag:
<meta name="generator" content="Nikola (getnikola.com)">
% endif
${feeds_translations.head(classification=None, kind=kind, other=False)}
${feeds_translations.head(classification=None, kind='index', other=False)}
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
Expand Down Expand Up @@ -101,7 +101,7 @@ lang="${lang}">

### This function is deprecated; use feed_helper directly.
<%def name="html_feedlinks()">
${feeds_translations.head(classification=None, kind=kind, other=False)}
${feeds_translations.head(classification=None, kind='index', other=False)}
</%def>

<%def name="html_translations()">
Expand Down
Expand Up @@ -45,7 +45,7 @@ lang="{{ lang }}">
{% if meta_generator_tag %}
<meta name="generator" content="Nikola (getnikola.com)">
{% endif %}
{{ feeds_translations.head(classification=None, kind=kind, other=False) }}
{{ feeds_translations.head(classification=None, kind='index', other=False) }}
<link rel="canonical" href="{{ abs_link(permalink) }}">

{% if favicons %}
Expand Down Expand Up @@ -156,7 +156,7 @@ lang="{{ lang }}">
{% endmacro %}

{% macro html_feedlinks() %}
{{ feeds_translations.head(classification=None, kind=kind, other=False) }}
{{ feeds_translations.head(classification=None, kind='index', other=False) }}
{% endmacro %}

{% macro html_translations() %}
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap3/templates/base_helper.tmpl
Expand Up @@ -45,7 +45,7 @@ lang="${lang}">
% if meta_generator_tag:
<meta name="generator" content="Nikola (getnikola.com)">
% endif
${feeds_translations.head(classification=None, kind=kind, other=False)}
${feeds_translations.head(classification=None, kind='index', other=False)}
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
Expand Down Expand Up @@ -156,7 +156,7 @@ lang="${lang}">
</%def>

<%def name="html_feedlinks()">
${feeds_translations.head(classification=None, kind=kind, other=False)}
${feeds_translations.head(classification=None, kind='index', other=False)}
</%def>

<%def name="html_translations()">
Expand Down

0 comments on commit 5f5f6db

Please sign in to comment.