Commit d5333e39 authored by fred's avatar fred
Browse files

performance: do not call nested templates for news link

parent 5e2ce24e
......@@ -35,7 +35,11 @@
<div class="wrapper">
<ul class="news columns padded">
{% for NewsItem in news %}
<li class="item ellipsis small ">{% include "news/link.html" with content=NewsItem %}</li>
<li class="item ellipsis small ">
<a href="{% url 'news-view' slug=NewsItem.slug %}">
<span class="title"><strong>{{ NewsItem.datetime|date:"D m/M" }}</strong>&nbsp;-&nbsp;{{ NewsItem.title }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
......
<a href="{% url 'news-view' slug=content.slug %}">
<span class="title"><strong>{{ NewsItem.datetime|date:"D m/M" }}</strong>&nbsp;-&nbsp;{{ content.title }}</span>
</a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment