diff options
author | Justin Mayer <entroP@gmail.com> | 2013-03-30 10:50:57 -0700 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2013-03-30 10:50:57 -0700 |
commit | 250484f57aeae2cfebe8eca4fb406bc768b71415 (patch) | |
tree | a69b08615b4c00cf6022ddbc238ce5343409c15a | |
parent | 100b0bc7a91454670c3f9761fa03241e2367b2e5 (diff) | |
download | pelican-themes-250484f57aeae2cfebe8eca4fb406bc768b71415.tar.gz |
Strip tags from article title. Fixes #71.
-rw-r--r-- | notmyidea-cms-fr/templates/article.html | 8 | ||||
-rw-r--r-- | notmyidea-cms/templates/article.html | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/notmyidea-cms-fr/templates/article.html b/notmyidea-cms-fr/templates/article.html index 24767dd..bc7f574 100644 --- a/notmyidea-cms-fr/templates/article.html +++ b/notmyidea-cms-fr/templates/article.html @@ -1,7 +1,7 @@ {% extends "base.html" %} -{% block title %}{{ article.title }}{% endblock %} -{% block content %} -<section id="content" class="body"> +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +<section id="content" class="body"> <article> <header> <h1 class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title @@ -16,7 +16,7 @@ Par <a class="url fn" href="#">{{ article.author }}</a> </address> {% endif %} - <p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. + <p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. {% include 'taglist.html' %} </footer><!-- /.post-info --> {{ article.content }} diff --git a/notmyidea-cms/templates/article.html b/notmyidea-cms/templates/article.html index 79ad679..6f50605 100644 --- a/notmyidea-cms/templates/article.html +++ b/notmyidea-cms/templates/article.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ article.title }}{% endblock %} +{% block title %}{{ article.title|striptags }}{% endblock %} {% block content %} <section id="content" class="body"> <article> |