Merge pull request #119 from cdhowie/master
Gum: Fix article titles, fix unescaped tags
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ article.title|striptags }}{% endblock %}
|
||||
{% block content %}
|
||||
<section id="content" class="body">
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag|e }}{% endblock %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user