diff --git a/files/templates/default.html b/files/templates/default.html
index 0d4ff197a..b266188da 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -95,7 +95,7 @@
-
+
@@ -105,7 +105,7 @@
-
+
{% endblock %}
diff --git a/files/templates/home.html b/files/templates/home.html
index 7fb0ba863..24468a8b4 100644
--- a/files/templates/home.html
+++ b/files/templates/home.html
@@ -2,23 +2,34 @@
{% if sub %}
{% block title %}
-
{{SITE_NAME}}
+ {% if sub.bannerurl %}
+ {% set preview = sub.bannerurl %}
+ {% elif sub.sidebarurl %}
+ {% set preview = sub.sidebarurl %}
+ {% else %}
+ {% set preview = sub.banner_url %}
+ {% endif %}
-
-
-
-
-
-
-
+ {{SITE_NAME}}
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {% if sub.sidebar %}
+
+
+ {% endif %}
{% endblock %}
{% endif %}
diff --git a/files/templates/settings2.html b/files/templates/settings2.html
index d3a890051..2cfe9e9e4 100644
--- a/files/templates/settings2.html
+++ b/files/templates/settings2.html
@@ -18,7 +18,7 @@
-
+
@@ -28,7 +28,7 @@
-
+