Blog post header improvements

This commit is contained in:
2024-02-27 23:57:56 +01:00
parent ee202d8670
commit 4fd4373ed0
2 changed files with 45 additions and 7 deletions

View File

@ -1,13 +1,13 @@
{% 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%}
<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>
<ul>
{% for post in posts %}
@ -19,4 +19,5 @@
{% endfor %}
</ul>
{% endif %}
{% endblock %}