Remove urlize filter from news items, we already have linkified in the commonmark filter.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-17 14:49:52 +01:00
parent e3ff8d876e
commit 53adb50baf
2 changed files with 2 additions and 2 deletions

View file

@ -14,5 +14,5 @@
{% endif %} {% endif %}
<h3>{{ news_item.title }} <small>{{ news_item.published_at|date:"Y-m-d" }}</small></h3> <h3>{{ news_item.title }} <small>{{ news_item.published_at|date:"Y-m-d" }}</small></h3>
</div> </div>
{{ news_item.content|trustedcommonmark|urlize }} {{ news_item.content|trustedcommonmark }}
{% endblock %} {% endblock %}

View file

@ -20,7 +20,7 @@ News | {{ block.super }}
<div> <div>
<h3><a href="{% url 'news:detail' slug=item.slug %}">{{ item.title }}</a> <small>{{ item.published_at|date:"Y-m-d" }}</small></h3> <h3><a href="{% url 'news:detail' slug=item.slug %}">{{ item.title }}</a> <small>{{ item.published_at|date:"Y-m-d" }}</small></h3>
</div> </div>
{{ item.content|trustedcommonmark|urlize }} {{ item.content|trustedcommonmark }}
{% if not forloop.last %} {% if not forloop.last %}
<hr /> <hr />
{% endif %} {% endif %}