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
|
|
|
|
2016-07-05 16:46:32 +00:00
|
|
|
{% block title %}
|
|
|
|
News | {{ block.super }}
|
|
|
|
{% endblock %}
|
|
|
|
|
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>
|
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 %}
|