commit 0077ded6ef731273459260e5be56919a3b9d2830 parent bb5597635efd3806d9c408918aa85e01046214a9 Author: Lou Woell <lou.woell@posteo.de> Date: Sat, 13 Dec 2025 15:50:20 +0100 layout baseof: better whitespace Diffstat:
| M | layouts/baseof.html | | | 47 | ++++++++++++++++++++++++++--------------------- |
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/layouts/baseof.html b/layouts/baseof.html @@ -1,28 +1,33 @@ <!DOCTYPE html> <html lang="{{ $.Site.Language }}"> -<head> - {{ block "title" . }} - <title>{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}</title> - {{ end }} - {{ partial "head.html" . }} -</head> -<body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}"> - <script>0</script> -{{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }} + <head> + {{- block "title" . }} + <title> + {{- if .IsHome -}} + {{- $.Site.Title -}} + {{- else -}} + {{- .Title }} :: {{ $.Site.Title -}} + {{- end -}} + </title> + {{- end }} + {{- partial "head.html" . }} + </head> + <body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}"> + <script>0</script> + {{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }} -<div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}"> + <div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}"> - {{ partial "header.html" . }} + {{ partial "header.html" . }} - <div class="content"> - {{ block "main" . }} - {{ end }} - </div> + <div class="content"> + {{ block "main" . }} + {{ end }} + </div> - {{ block "footer" . }} - {{ partial "footer.html" . }} - {{ end }} -</div> - -</body> + {{ block "footer" . }} + {{ partial "footer.html" . }} + {{ end }} + </div> + </body> </html>