diff --git a/internal/template/templates/common/layout.html b/internal/template/templates/common/layout.html
index 6b13c793..cfc99e38 100644
--- a/internal/template/templates/common/layout.html
+++ b/internal/template/templates/common/layout.html
@@ -5,45 +5,42 @@
{{template "title" .}} - Miniflux
-
-
-
-
-
+
+
-
+
+
+
+
+
+
-
-
-
-
-
{{ if .user }}
{{ $cspNonce := nonce }}
- {{ if .user.Stylesheet }}
+ {{ if .user.Stylesheet -}}
- {{ end }}
+ {{ end -}}
- {{ if .user.CustomJS }}
+ {{ if .user.CustomJS -}}
- {{ end }}
- {{ else }}
+ {{ end -}}
+ {{ else -}}
- {{ end }}
+ {{ end -}}