22 lines
437 B
HTML
22 lines
437 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 class="mx-6 mt-3 text-4xl text-blue-950 font-extrabold">
|
|
{% if let Some(t) = tag %}
|
|
<em>{{t}}</em>
|
|
{% else %}
|
|
Blog posts
|
|
{% endif %}
|
|
</h1>
|
|
|
|
<ul>
|
|
{% for post in posts %}
|
|
<li class="my-12">
|
|
{% include "post_preview_card.html" %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% endif %}
|
|
{% endblock %}
|