diff --git a/template/layout.jet.html b/template/layout.jet.html
index 6d1ccaf..b7431b6 100644
--- a/template/layout.jet.html
+++ b/template/layout.jet.html
@@ -14,6 +14,8 @@
+
+
{{ if BaseURL }}
@@ -22,22 +24,28 @@
{{ if isset(PageType) }}
- {{ if PageType == "artwork" }}
- {{ if Illust.XRestrict }}
-
- {{ else }}
+ {{ if PageType == "artwork" }}
+
+ {{ if ! Illust.XRestrict }}
-
+ {{ else }}
{{ end }}
{{ else if PageType == "user" }}
+ {{ if User.BackgroundImage }}
+
+ {{ else }}
+
+ {{ end }}
{{ end }}
+
{{ else }}
-
+
+
{{ end }}
{{ end }}