Corrected variable names.
parent
d347a78f18
commit
4c643a63ee
|
|
@ -5,11 +5,6 @@
|
|||
{% if object_list %}
|
||||
{% if category %}
|
||||
<h3>{{ category }} News</h3>
|
||||
<!-- {% if category.introduction %} -->
|
||||
<!-- <div> -->
|
||||
<!-- <p>{{ category.introduction }}</p> -->
|
||||
<!-- </div> -->
|
||||
<!-- {% endif %} -->
|
||||
{% elif tag %}
|
||||
<h3>News for tag: {{ tag }}</h3>
|
||||
{% else %}
|
||||
|
|
@ -17,14 +12,16 @@
|
|||
{% endif %}
|
||||
<hr>
|
||||
<div>
|
||||
{% for news in object_list %}
|
||||
{% for newsitem in object_list %}
|
||||
<div>
|
||||
<a href="{{ news.get_absolute_url }}">{{ news.title }}</a>
|
||||
<hr >
|
||||
<a href="{{ newsitem.get_absolute_url }}">{{ newsitem.title }}</a>
|
||||
<hr>
|
||||
{{ newsitem.body_as_markdown|safe }}
|
||||
<hr>
|
||||
<div>
|
||||
<span>
|
||||
<a href="{% url 'news:list_category' category=news.category.slug %}">{{ news.category }} </a>
|
||||
• {{ news.created | date:'jS \o\f F, Y' }}
|
||||
<a href="{% url 'news:list_category' category=newsitem.category.slug %}">{{ newsitem.category }} </a>
|
||||
• {{ newsitem.created_at | date:'jS \o\f F, Y' }}
|
||||
</span>
|
||||
<span>{% include 'news/includes/display_tags.html' %}</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue