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