diff --git a/layouts/_default/_markup/render-image.html.example b/layouts/_default/_markup/render-image.html.example index 77731f4..3bf4c7d 100644 --- a/layouts/_default/_markup/render-image.html.example +++ b/layouts/_default/_markup/render-image.html.example @@ -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 -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index dc28413..43ed71b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,4 +17,4 @@ {{ partial "pagination.html" . }} -{{ end }} +{{ end -}} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 09b04cc..2f86d8f 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -16,10 +16,10 @@ {{ . }} {{ end -}} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Copyright -}} {{ . }} @@ -36,7 +36,7 @@ {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ .Permalink }} {{ .Content | html }} diff --git a/layouts/micro/list.html b/layouts/micro/list.html index e0b57de..a4a5814 100644 --- a/layouts/micro/list.html +++ b/layouts/micro/list.html @@ -3,15 +3,15 @@

Micro posts

{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}

-{{ with .Content }} +{{ with .Content -}}
{{ . }}
-{{ end }} +{{ end -}} {{ $paginator := .Paginate (.Pages) -}} {{ range $paginator.Pages -}} -{{ .Render "summary"}} +{{ .Render "summary" }} {{ end -}} {{ partial "pagination.html" . }} diff --git a/layouts/micro/list.json.json b/layouts/micro/list.json.json index 778a5d3..a0aa79e 100644 --- a/layouts/micro/list.json.json +++ b/layouts/micro/list.json.json @@ -3,7 +3,7 @@ { "version" : "https://jsonfeed.org/version/1", "title" : "Micro posts {{ i18n "string_on" }} {{ site.Title }}", - "description": "Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{end}}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}", + "description": "Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{ end }}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}", "home_page_url" : "{{ site.BaseURL }}", {{ with .OutputFormats.Get "JSON" -}} "feed_url" : "{{ .Permalink }}", diff --git a/layouts/micro/rss.xml b/layouts/micro/rss.xml index 2c91536..9d3904b 100644 --- a/layouts/micro/rss.xml +++ b/layouts/micro/rss.xml @@ -2,16 +2,16 @@ Micro posts {{ i18n "string_on" }} {{ site.Title }} {{ .Permalink }} - Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{end}}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }} + Micro blog {{ i18n "string_by" }} {{ with site.Author.name }}{{ . }}{{ end }}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }} Hugo -- gohugo.io {{ with site.LanguageCode -}} {{ . }} {{ end -}} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Copyright -}} {{ . }} diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml index b81c6bf..a969907 100644 --- a/layouts/podcast/rss.xml +++ b/layouts/podcast/rss.xml @@ -7,10 +7,10 @@ Hugo -- gohugo.io {{ site.Params.Podcast.Lang | default site.LanguageCode }} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Author.email -}} - {{ . }}{{ with site.Author.name }} ({{ . }}){{end}} + {{ . }}{{ with site.Author.name }} ({{ . }}){{ end }} {{ end -}} {{ with site.Copyright -}} {{ . }} @@ -20,7 +20,7 @@ {{ end -}} {{ with site.Params.Podcast.Image }}{{ $image := resources.Get . }}{{ end }} {{ with site.Params.Podcast.Category -}} - + {{ range .subcategories }}{{ end }} {{ end -}} @@ -37,7 +37,7 @@ {{ with site.Params.Podcast.Complete }}{{ . }}{{ end }} {{ with site.Params.Podcast.NewFeed }}{{ . }}{{ end }} {{ if site.Params.Podcast.Explicit }}true{{ else }}false{{ end }} - {{ range .Pages }} + {{ range .Pages -}} {{ .Title }} {{ .Title }} @@ -61,6 +61,6 @@ {{ with .Params.podcast.block }}{{ . }}{{ end }} {{ if .Params.podcast.explicit }}true{{ else }}false{{ end }} - {{ end }} + {{ end -}}