2016-05-30 19:36:14 +00:00
|
|
|
{% extends 'base.html' %}
|
2016-05-30 19:51:17 +00:00
|
|
|
{% load commonmark %}
|
2016-05-30 19:36:14 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% for item in news_items %}
|
|
|
|
<div>
|
|
|
|
<h3>{{ item.title }} <small>{{ item.published_at|date:"Y-m-d" }}</small></h3>
|
|
|
|
</div>
|
2016-05-30 19:51:17 +00:00
|
|
|
{{ 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 %}
|