bornhack-website/news/templates/news_index.html

16 lines
410 B
HTML
Raw Normal View History

2016-05-30 19:36:14 +00:00
{% extends 'base.html' %}
{% load commonmark %}
2016-05-30 19:36:14 +00:00
{% block content %}
{% for item in news_items %}
<div>
2016-06-05 21:34:07 +00:00
<h3><a href="{% url 'news:detail' slug=item.slug %}">{{ item.title }}</a> <small>{{ item.published_at|date:"Y-m-d" }}</small></h3>
2016-05-30 19:36:14 +00:00
</div>
{{ item.content|commonmark }}
2016-05-30 19:36:14 +00:00
{% if not forloop.last %}
<hr />
{% endif %}
{% empty %}
<h3>No news yet. Stay tuned!</h3>
{% endfor %}
{% endblock %}