2024-01-04 11:54:56 +11:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-01-21 15:39:19 +11:00
|
|
|
<div class="buttons">
|
|
|
|
<a href="{% url 'blog-articles' %}"><button class="button button-primary button-first">Latest posts</button></a>
|
|
|
|
<a href="{% url 'register-blog' %}"><button class="button">Add a Blog</button></a>
|
2024-01-09 18:11:22 +11:00
|
|
|
</div>
|
|
|
|
<div class="listing l-three header">
|
|
|
|
<div>Title</div>
|
|
|
|
<div>Category</div>
|
|
|
|
<div>Last updated</div>
|
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
{% for blog in blogs %}
|
|
|
|
<div class="listing l-three">
|
|
|
|
<div>
|
2024-01-21 15:39:19 +11:00
|
|
|
<p><a href="{{blog.url}}">{{blog.title}}</a><a href="{{blog.feed}}">{% include 'utils/rss-img.html' %}</a></p>
|
2024-01-09 18:11:22 +11:00
|
|
|
<p>{{blog.description}}</p>
|
2024-01-04 11:54:56 +11:00
|
|
|
</div>
|
2024-01-09 18:11:22 +11:00
|
|
|
<div><div class="end badge badge_{{blog.category}}"><a href="/blogs/{{blog.category}}">{{blog.category_name}}</a></div></div>
|
|
|
|
<div>{{ blog.updateddate|date:"D d M Y" }}
|
2024-01-04 11:54:56 +11:00
|
|
|
</div>
|
2024-01-09 18:11:22 +11:00
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
{% empty %}
|
|
|
|
<p>Oh no! There are no blogs currently registered. Try checking out <a href="{% url 'newsletters' %}">some newsletters</a>.</p>
|
|
|
|
{% endfor %}
|
2024-01-04 11:54:56 +11:00
|
|
|
|
|
|
|
{% endblock %}
|