Templates white space fixes.

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

View file

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

View file

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

View file

@ -3,11 +3,11 @@
<h1 class="title">Micro posts</h1> <h1 class="title">Micro posts</h1>
<p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p> <p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p>
{{ with .Content }} {{ with .Content -}}
<div class="content"> <div class="content">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end -}}
{{ $paginator := .Paginate (.Pages) -}} {{ $paginator := .Paginate (.Pages) -}}
{{ range $paginator.Pages -}} {{ range $paginator.Pages -}}

View file

@ -37,7 +37,7 @@
{{ with site.Params.Podcast.Complete }}<itunes:complete>{{ . }}</itunes:complete>{{ end }} {{ with site.Params.Podcast.Complete }}<itunes:complete>{{ . }}</itunes:complete>{{ end }}
{{ with site.Params.Podcast.NewFeed }}<itunes:new-feed-url>{{ . }}</itunes:new-feed-url>{{ end }} {{ with site.Params.Podcast.NewFeed }}<itunes:new-feed-url>{{ . }}</itunes:new-feed-url>{{ end }}
<itunes:explicit>{{ if site.Params.Podcast.Explicit }}true{{ else }}false{{ end }}</itunes:explicit> <itunes:explicit>{{ if site.Params.Podcast.Explicit }}true{{ else }}false{{ end }}</itunes:explicit>
{{ range .Pages }} {{ range .Pages -}}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<itunes:title>{{ .Title }}</itunes:title> <itunes:title>{{ .Title }}</itunes:title>
@ -61,6 +61,6 @@
{{ with .Params.podcast.block }}<itunes:block>{{ . }}</itunes:block>{{ end }} {{ with .Params.podcast.block }}<itunes:block>{{ . }}</itunes:block>{{ end }}
<itunes:explicit>{{ if .Params.podcast.explicit }}true{{ else }}false{{ end }}</itunes:explicit> <itunes:explicit>{{ if .Params.podcast.explicit }}true{{ else }}false{{ end }}</itunes:explicit>
</item> </item>
{{ end }} {{ end -}}
</channel> </channel>
</rss> </rss>