Add news posts

You know. For basic information.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-13 23:01:51 -07:00
parent a4f00e6242
commit 996e75dc2a
6 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
{% extends "board/base.html" %}
{% load i18n %}
{% block title %}
News
{% endblock title %}
{% block content %}
<div class="row">
<div class="column">&nbsp;</div>
<div class="column"><h1>News</h1></div>
<div class="column">&nbsp;</div>
</div>
<hr />
<div class="row">
<div class="column">&nbsp;</div>
<div class="column">
{% for post in object_list %}
<div class="row">
<section>
<h3>{{post.title}}</h3>
<header class="news_header">
{% blocktranslate with created=post.created author=post.author %}
by {{author}} at <time>{{created}}</time>
{% endblocktranslate %}
</header>
<article>
<p>{{post.body|safe|linebreaks}}</p>
</article>
</section>
<hr />
</div>
{% endfor %}
</div>
<div class="column">&nbsp;</div>
</div>
{% endblock content %}