diff --git a/files/templates/home.html b/files/templates/home.html
index a7b9dd354..0c6570843 100644
--- a/files/templates/home.html
+++ b/files/templates/home.html
@@ -11,7 +11,7 @@
{% block head_final %}
{% set preview = sub.siderbarurl if sub and sub.sidebarurl else sub.bannerurl %}
-
+{% if sub %}
@@ -25,7 +25,7 @@
-
+{% endif %}
{% if sub.sidebar %}