Templates white space fixes.

This commit is contained in:
Fredrik Jonsson 2023-09-29 10:55:50 +02:00
commit e3861bb728
3 changed files with 17 additions and 17 deletions

View file

@ -49,7 +49,7 @@
{{ range $set := split $srcset " " -}}
{{ $image := $resource.Resize (printf "%sx" $set) -}}
{{ $srcsetw = $srcsetw | append (printf "%s %sw" $image.RelPermalink $set) -}}
{{ end }}
{{ end -}}
{{ $width = "" -}}
{{ $height = "" -}}
{{ end -}}

View file

@ -17,4 +17,4 @@
{{ partial "pagination.html" . }}
</main>
{{ end }}
{{ end -}}

View file

@ -16,10 +16,10 @@
<language>{{ . }}</language>
{{ end -}}
{{ with site.Author.email -}}
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</managingEditor>
<managingEditor>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</managingEditor>
{{ end -}}
{{ with site.Author.email -}}
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</webMaster>
<webMaster>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</webMaster>
{{ end -}}
{{ with site.Copyright -}}
<copyright>{{ . }}</copyright>
@ -36,7 +36,7 @@
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with site.Author.email -}}
<author>{{ . }}{{ with site.Author.name }} ({{ . }}){{end}}</author>
<author>{{ . }}{{ with site.Author.name }} ({{ . }}){{ end }}</author>
{{ end -}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>