michalvankodev-site/axum_server/templates/post_list.html

23 lines
556 B
HTML

{% extends "base.html" %} {% block content %} {% if posts.len() == 0 %}
<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 %}
<li class="my-12">
{% include "post_preview_card.html" %} {#
<ArticlePreviewCard {article} {segment} /> #} {#
<ArticleFooter {article} {segment} /> #}
</li>
{% endfor %}
</ul>
{% endblock %}