From cc2deda835e3700d117e9fc82bbaca3033bb1984 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 1 Feb 2023 20:37:52 -0500 Subject: rendering fixes for posts --- templates/blog/articles.html | 18 ++++++++++++++---- templates/blog/home.html | 9 +++++++++ templates/blog/partials/base.html | 9 --------- templates/blog/post.html | 9 +++++++++ 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/templates/blog/articles.html b/templates/blog/articles.html index 309ef566..8038c8a9 100644 --- a/templates/blog/articles.html +++ b/templates/blog/articles.html @@ -8,6 +8,8 @@

Posts made in Category: {{ category }}

{% endif %} + +{% if posts %}
Filters:     @@ -32,8 +34,6 @@   
- -{% if posts %}
{% for post in posts %}
@@ -54,7 +54,6 @@
{% endfor %}
-{% endif %}
@@ -79,5 +78,16 @@
- + + +{% else %} +

No posts found.

+{% endif %} {% endblock %} \ No newline at end of file diff --git a/templates/blog/home.html b/templates/blog/home.html index 95e08043..ee158897 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -71,6 +71,15 @@ {% endfor %} + + {% endif %} {% endblock %} diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index 2b6e2413..2f395b1b 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -63,13 +63,4 @@ - - diff --git a/templates/blog/post.html b/templates/blog/post.html index 42fb78b1..67231db3 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -109,6 +109,15 @@

You must be logged in to leave a comment.

{% endif %} + +