add note when there are no posts

This commit is contained in:
slonkazoid 2024-05-04 00:24:29 +03:00 committed by heavyweaponsgal
parent e44f4e48b9
commit b0bc2ea611

View file

@ -17,6 +17,9 @@
<h2>posts</h2>
<!-- prettier-ignore -->
<div>
{% if posts.is_empty() %}
there are no posts right now. check back later!
{% endif %}<!-- prettier-br -->
{% for post in posts %}
<div class="post">
<a href="/posts/{{ post.name }}"><b>{{ post.title }}</b></a>