Skip to content

Commit

Permalink
Include base element in default themes.
Browse files Browse the repository at this point in the history
Resolves #1922.
  • Loading branch information
da2x committed Aug 6, 2015
1 parent ea8239c commit d329bff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -11,6 +11,8 @@ Features
Bugfixes
--------

* Set a base element to aid relative URL resolution, stripped on-the-fly
when using the auto or serve command to view site locally. (Issue #1922)
* Rebuild archives when post slugs and titles change (Issue #1931)
* Handle special characters in URLs in nikola auto (Issue #1925)
* Avoid Broken Pipe error in nikola auto (Issue #1906)
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/base-jinja/templates/base_helper.tmpl
Expand Up @@ -21,6 +21,7 @@ dir="rtl"
lang="{{ lang }}">
<head>
<meta charset="utf-8">
<base href="{{ abs_link(permalink) }}">
{% if description %}
<meta name="description" content="{{ description }}">
{% endif %}
Expand All @@ -29,9 +30,7 @@ lang="{{ lang }}">

{{ html_stylesheets() }}
{{ html_feedlinks() }}
{% if permalink %}
<link rel="canonical" href="{{ abs_link(permalink) }}">
{% endif %}
<link rel="canonical" href="{{ abs_link(permalink) }}">

{% if favicons %}
{% for name, file, size in favicons %}
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/base/templates/base_helper.tmpl
Expand Up @@ -21,6 +21,7 @@ dir="rtl" \
lang="${lang}">
<head>
<meta charset="utf-8">
<base href="${abs_link(permalink)}">
%if description:
<meta name="description" content="${description}">
%endif
Expand All @@ -29,9 +30,7 @@ lang="${lang}">

${html_stylesheets()}
${html_feedlinks()}
%if permalink:
<link rel="canonical" href="${abs_link(permalink)}">
%endif
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
%for name, file, size in favicons:
Expand Down
Expand Up @@ -26,6 +26,7 @@ dir="rtl"
lang="{{ lang }}">
<head>
<meta charset="utf-8">
<base href="{{ abs_link(permalink) }}">
{% if description %}
<meta name="description" content="{{ description }}">
{% endif %}
Expand All @@ -34,9 +35,7 @@ lang="{{ lang }}">

{{ html_stylesheets() }}
{{ html_feedlinks() }}
{% if permalink %}
<link rel="canonical" href="{{ abs_link(permalink) }}">
{% endif %}
<link rel="canonical" href="{{ abs_link(permalink) }}">

{% if favicons %}
{% for name, file, size in favicons %}
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/bootstrap3/templates/base_helper.tmpl
Expand Up @@ -26,6 +26,7 @@ dir="rtl" \
lang="${lang}">
<head>
<meta charset="utf-8">
<base href="${abs_link(permalink)}">
%if description:
<meta name="description" content="${description}">
%endif
Expand All @@ -34,9 +35,7 @@ lang="${lang}">

${html_stylesheets()}
${html_feedlinks()}
%if permalink:
<link rel="canonical" href="${abs_link(permalink)}">
%endif
<link rel="canonical" href="${abs_link(permalink)}">

%if favicons:
%for name, file, size in favicons:
Expand Down

0 comments on commit d329bff

Please sign in to comment.