From e07202c484c8ecb3adad3ed7f1c767f187839330 Mon Sep 17 00:00:00 2001 From: OndraPetrzilka <ondra.petrzilka@gmail.com> Date: Wed, 24 Aug 2022 13:34:55 +0200 Subject: [PATCH] if tweet_list empty, dont render twitter block --- main/templates/main/main_person_page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/templates/main/main_person_page.html b/main/templates/main/main_person_page.html index ac12210f..c9424944 100644 --- a/main/templates/main/main_person_page.html +++ b/main/templates/main/main_person_page.html @@ -50,7 +50,7 @@ {% endif %} </section> </div> - {% if not tweet_list.empty %} + {% if tweet_list %} <section class="grid-container no-max"> <div class="grid-content-with-right-side"> <h2 class="head-4xl text-center xl:text-left"> @@ -75,7 +75,7 @@ </div> </section> {% endif %} - {% if not article_page_list.empty %} + {% if article_page_list %} <section class="grid-container mb-4 justify-start xl:mb-14"> <div class="grid-content"> <div class="leading-6"> -- GitLab