Skip to content
Permalink
Browse files
Remove duplicated BLOG_TITLE on front page
* Don’t strip, rather escape HTML in TITLES

Fixes #1952.
  • Loading branch information
da2x committed Aug 19, 2015
1 parent ef4d2a2 commit 4dbfeae3534598e7d0482c631564fb0067f4116a
@@ -12,6 +12,8 @@ Features
Bugfixes
--------

* Don’t duplicate BLOG_TITLE in the front page title (Issue #1952)
* Escape instad of strip HTML in titles (Issue #1952)
* Make LINK_CHECK_WHITELIST apply to remote link checks
* Make STORY_INDEX work together with PRETTY_URLS (Issue #1949)
* Refactor new_post to match lazy plugin loading (Issue #1943)
@@ -26,7 +26,11 @@ lang="{{ lang }}">
<meta name="description" content="{{ description }}">
{% endif %}
<meta name="viewport" content="width=device-width">
<title>{{ title|e }} | {{ blog_title|e }}</title>
{% if title == blog_title %}
<title>{{ blog_title|e }}</title>
{% else %}
<title>{{ title|e }} | {{ blog_title|e }}</title>
{% endif %}

{{ html_stylesheets() }}
{{ html_feedlinks() }}
@@ -26,7 +26,11 @@ lang="${lang}">
<meta name="description" content="${description}">
%endif
<meta name="viewport" content="width=device-width">
<title>${title|striphtml} | ${blog_title|striphtml}</title>
%if title == blog_title:
<title>${blog_title|h}</title>
%else:
<title>${title|h} | ${blog_title|h}</title>
%endif

${html_stylesheets()}
${html_feedlinks()}
@@ -31,7 +31,11 @@ lang="{{ lang }}">
<meta name="description" content="{{ description }}">
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title|e }} | {{ blog_title|e }}</title>
{% if title == blog_title %}
<title>{{ blog_title|e }}</title>
{% else %}
<title>{{ title|e }} | {{ blog_title|e }}</title>
{% endif %}

{{ html_stylesheets() }}
{{ html_feedlinks() }}
@@ -31,7 +31,11 @@ lang="${lang}">
<meta name="description" content="${description}">
%endif
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>${title|striphtml} | ${blog_title|striphtml}</title>
%if title == blog_title:
<title>${blog_title|h}</title>
%else:
<title>${title|h} | ${blog_title|h}</title>
%endif

${html_stylesheets()}
${html_feedlinks()}

0 comments on commit 4dbfeae

Please sign in to comment.