16 lines
414 B
HTML
16 lines
414 B
HTML
{% extends 'base.html' %}
|
|
{% load commonmark %}
|
|
|
|
{% block content %}
|
|
{% for item in news_items %}
|
|
<div>
|
|
<h3><a href="{% reverse 'news:detail' slug=item.slug %}">{{ item.title }}</a> <small>{{ item.published_at|date:"Y-m-d" }}</small></h3>
|
|
</div>
|
|
{{ item.content|commonmark }}
|
|
{% if not forloop.last %}
|
|
<hr />
|
|
{% endif %}
|
|
{% empty %}
|
|
<h3>No news yet. Stay tuned!</h3>
|
|
{% endfor %}
|
|
{% endblock %} |