michalvankodev-site/axum_server/templates/post_list.html

24 lines
538 B
HTML
Raw Normal View History

2024-01-18 20:31:25 +01:00
{% extends "base.html" %} {% block content %} {% if posts.len() == 0 %}
2024-01-14 22:56:14 +01:00
<p class="no-posts">You've found void in the space.</p>
{% else %}
2024-02-27 23:57:56 +01:00
<h1 class="mx-6 mt-3 text-4xl text-blue-900 font-extrabold">
{% if let Some(t) = tag %}
<em>{{t}}</em>
{% else %}
Blog posts
{% endif %}
</h1>
2024-01-14 22:56:14 +01:00
<ul>
{% for post in posts %}
2024-02-27 22:53:08 +01:00
<li class="my-12">
2024-01-18 20:31:25 +01:00
{% include "post_preview_card.html" %} {#
<ArticlePreviewCard {article} {segment} /> #} {#
<ArticleFooter {article} {segment} /> #}
2024-01-14 22:56:14 +01:00
</li>
{% endfor %}
</ul>
2024-02-27 23:57:56 +01:00
{% endif %}
{% endblock %}