diff options
author | kaliko <kaliko@azylum.org> | 2019-10-25 09:19:15 +0200 |
---|---|---|
committer | kaliko <kaliko@azylum.org> | 2019-10-25 09:20:14 +0200 |
commit | 0806df606850b7f7544d99c6449dbea3a247981a (patch) | |
tree | c101d83be6f121ba1c8bdcf8d6766badf6d0655c | |
parent | 01eb08c42b543450ee5e0e3de3854526708a6711 (diff) | |
download | pelican-0806df606850b7f7544d99c6449dbea3a247981a.tar.gz |
Fixed simple theme, add missing striptags filter
page.title are missing striptags in title block
-rw-r--r-- | pelican/themes/simple/templates/article.html | 2 | ||||
-rw-r--r-- | pelican/themes/simple/templates/page.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html index 5a1c093d..c8c9a4f7 100644 --- a/pelican/themes/simple/templates/article.html +++ b/pelican/themes/simple/templates/article.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block html_lang %}{{ article.lang }}{% endblock %} -{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} +{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} {% block head %} {{ super() }} diff --git a/pelican/themes/simple/templates/page.html b/pelican/themes/simple/templates/page.html index 7150d420..33344eac 100644 --- a/pelican/themes/simple/templates/page.html +++ b/pelican/themes/simple/templates/page.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block html_lang %}{{ page.lang }}{% endblock %} -{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%} +{% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%} {% block head %} {{ super() }} |