Corrected variable names.

dev
Calum Andrew Morrell 2025-11-10 20:59:03 +00:00
parent d347a78f18
commit 4c643a63ee
1 changed files with 7 additions and 10 deletions

View File

@ -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>
&bull; {{ news.created | date:'jS \o\f F, Y' }}
<a href="{% url 'news:list_category' category=newsitem.category.slug %}">{{ newsitem.category }} </a>
&bull; {{ newsitem.created_at | date:'jS \o\f F, Y' }}
</span>
<span>{% include 'news/includes/display_tags.html' %}</span>
</div>