added thing when no posts are found yes

This commit is contained in:
xomf 2024-03-30 14:02:36 -04:00
parent 32cbb29676
commit 7b47b996c0

View File

@ -21,7 +21,7 @@
<label id="login-btn" for="toggle">Login</label> <label id="login-btn" for="toggle">Login</label>
</div> </div>
<div class="box" id="content-pane"> <div class="box" id="content-pane">
{% for post in posts %} {% for post in posts if posts.len() > 0 %}
<div class="post"> <div class="post">
<a href="{{post.origin_url}}"><img src="{{post.img_url}}" alt="post img"></a> <a href="{{post.origin_url}}"><img src="{{post.img_url}}" alt="post img"></a>
<span> <span>
@ -29,6 +29,8 @@
<p>{{post.descr}}</p> <p>{{post.descr}}</p>
</span> </span>
</div> </div>
{% else %}
<h2 style="color: gray;">No posts found, check back later. D:</h2>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>