From 71105bec56eca19d201384adfd5b4cb0814d72cd Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Thu, 21 Aug 2025 04:24:13 +0200 Subject: [PATCH] refactor(template): improve consistency in `layout.html` (meta tags, whitespace, comments) - Group the `` tags together - Trim some superfluous whitespace - Remove an obvious and thus useless comment --- .../template/templates/common/layout.html | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) 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 -}}