michalvankodev-site/axum_server/templates/post_list.html

23 lines
556 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 %}
<h1>{# if filters.tags #} {# <em>{filters.tags}</em> #} Blog posts</h1>
{#if filters.tags#}
<div class="{seeAllClass}">
<a href="/blog">See all posts</a>
</div>
{% endif%}
<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>
{% endblock %}