Remove urlize filter from news items, we already have linkified in the commonmark filter.
This commit is contained in:
parent
e3ff8d876e
commit
53adb50baf
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue