]> git.0d.be Git - panikweb-studioneau.git/commitdiff
do not display focus block if there's nothing to show
authorFrédéric Péters <fpeters@0d.be>
Sun, 4 Sep 2022 11:04:15 +0000 (13:04 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 4 Sep 2022 11:04:15 +0000 (13:04 +0200)
panikweb_studioneau/templates/home.html

index 345d31b739f9b226f615c7d0905a3766a4bb2ef7..49ec3d6ba6d1fbdd755a0507d175937fcd1c3bb2 100644 (file)
@@ -5,9 +5,11 @@
 
 {% block main %}
 
+{% if focus %}
 <div id="focus">
   {% include "news/roll.html" with news=focus %}
 </div>
+{% endif %}
 
 <div id="week">
   <h2 data-this-week-label="{% trans "This Week" %}"