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 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>
{{ newsitem.body_as_markdown|safe }}
<hr> <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>
&bull; {{ news.created | date:'jS \o\f F, Y' }} &bull; {{ 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>