summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2017-04-17 16:00:45 -0400
committerMatt Singleton <matt@xcolour.net>2017-04-17 16:00:45 -0400
commit26f93f9c17dcf81c69b814d9d402cd20ef32e1ef (patch)
tree29459593efa42aabde21fff40726343cbf510dca
parentfd5227f122adf65b8f5340751e037fce67e4d2c4 (diff)
clean up template formatting
-rw-r--r--unbiased/html_template/unbiased.jinja.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/unbiased/html_template/unbiased.jinja.html b/unbiased/html_template/unbiased.jinja.html
index 297c4c4..778bebc 100644
--- a/unbiased/html_template/unbiased.jinja.html
+++ b/unbiased/html_template/unbiased.jinja.html
@@ -23,9 +23,9 @@
<div class="top-story">
<a target="_blank" onclick="window.open('{{ story.url }}', '_blank')">
<div class="top-stories-img" style="background-image: url('{{ story.img }}');" /></div>
- <div class="top-stories-hed">{{ story.title }}</div>
+ <div class="top-stories-hed">{{ story.title|safe }}</div>
</a>
- <div class="top-stories-desc">{{ story.desc }}</div>
+ <div class="top-stories-desc">{{ story.description|safe|truncate(140) }}</div>
</div>
{% endfor %}
@@ -40,7 +40,7 @@
<div class="middle-story">
<div class="middle-stories-img" style="background-image: url('{{ story.img }}');">
</div>
- <div class="middle-stories-hed">{{ story.title }}</div>
+ <div class="middle-stories-hed">{{ story.title|safe }}</div>
</div>
</a>
@@ -53,7 +53,7 @@
{% for story in bottom_stories %}
<div class="bottom-story">
- <a target="_blank" onclick="window.open('{{ story.url }}', '_blank')">{{ story.title }}</a>
+ <a target="_blank" onclick="window.open('{{ story.url }}', '_blank')">{{ story.title|safe }}</a>
</div>
{% endfor %}