Merge pull request #119 from cdhowie/master

Gum: Fix article titles, fix unescaped tags
This commit is contained in:
Justin Mayer
2013-07-19 09:20:26 -07:00
5 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content" class="body">

View File

@@ -28,7 +28,7 @@
{% if article.tags %}
<span>Tagged as : </span>
{% for tag in article.tags %}
<a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
<a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag|e }}</a>
{% endfor %}
{% endif %}
</div>

View File

@@ -33,7 +33,7 @@
{% if tags %}
<ul>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0|e }}</a></li>
{% endfor %}
</ul>
{% endif %}

View File

@@ -1,2 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ tag|e }}{% endblock %}

View File

@@ -5,7 +5,7 @@
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
<i class="icon-tag icon-large"></i>{{ tag.0|e }}
</a>
</li>
{% endfor %}