aboutsummaryrefslogtreecommitdiffstats
path: root/notmyidea-cms-fr
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2013-03-30 10:50:57 -0700
committerJustin Mayer <entroP@gmail.com>2013-03-30 10:50:57 -0700
commit250484f57aeae2cfebe8eca4fb406bc768b71415 (patch)
treea69b08615b4c00cf6022ddbc238ce5343409c15a /notmyidea-cms-fr
parent100b0bc7a91454670c3f9761fa03241e2367b2e5 (diff)
downloadpelican-themes-250484f57aeae2cfebe8eca4fb406bc768b71415.zip
pelican-themes-250484f57aeae2cfebe8eca4fb406bc768b71415.tar.gz
pelican-themes-250484f57aeae2cfebe8eca4fb406bc768b71415.tar.bz2
Strip tags from article title. Fixes #71.
Diffstat (limited to 'notmyidea-cms-fr')
-rw-r--r--notmyidea-cms-fr/templates/article.html8
1 files changed, 4 insertions, 4 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 }}