blog/backend/templates/web/posts/index.html

32 lines
868 B
HTML
Raw Normal View History

2023-02-11 11:48:39 +00:00
{% extends "base.html" %}
{% block title %}posts{% endblock %}
{% block head %}{% endblock %}
{% block breadcrumb %}
<li><a href="/posts">posts</a></li>
{% endblock %}
{% block content %}
2023-02-12 09:57:02 +00:00
<h1>Post archive</h1>
2023-02-12 08:18:56 +00:00
<ul class="post-index dashed">
2023-02-11 11:48:39 +00:00
{% for post in posts %}
<li>
<span>
<a href="/posts/{{ post.slug }}">{{ post.name }}</a>
(<i>{{ post.published_at }}{% match post.edited_at %}{% when Some with (x) %} -> {{ x }}{% when None %}{% endmatch %}</i>)
</span>
<br />
2023-02-12 08:18:56 +00:00
<ul class="tag-list">
{% for tag in post.tags %}
<li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
{% endfor %}
</ul>
<br />
2023-02-11 11:48:39 +00:00
<span>{{ post.description }}</span>
</li>
{% endfor %}
</ul>
{% endblock %}