From dee6336441b5da8a00344eb135040a2cb3a94dac Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 11 Jan 2020 19:17:28 +0100 Subject: Cleanup whitespace in output --- themes/xmin/layouts/_default/baseof.html | 14 +++++++------- themes/xmin/layouts/_default/single.html | 9 ++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html index 16332b8..1705460 100644 --- a/themes/xmin/layouts/_default/baseof.html +++ b/themes/xmin/layouts/_default/baseof.html @@ -5,17 +5,17 @@ {{ .Title }} | {{ .Site.Title }} - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} - {{ end -}} + {{- range .AlternativeOutputFormats }} + {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{- end }} @@ -23,9 +23,9 @@ {{ end }} diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html index 7da26d1..ba0e22a 100644 --- a/themes/xmin/layouts/_default/single.html +++ b/themes/xmin/layouts/_default/single.html @@ -4,12 +4,11 @@

{{ .Title | markdownify }}

{{ if (gt .Params.date 0) }}{{ end }}

- {{ range $i := (slice "categories" "tags") }} - {{ with ($.Param $i) }} - {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }} - {{ end }} - {{ end }} + {{- range $i := (slice "categories" "tags") }} + {{- with ($.Param $i) }} {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }} + {{- end }} + {{- end }}

-- cgit 1.4.1