fix img tags

This commit is contained in:
Adam Ormsby 2020-05-20 12:43:00 -05:00
parent 05c034a966
commit b4504b35b2

View File

@ -34,13 +34,13 @@
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description> <description>
{{ if .Params.Cover }} {{ if .Params.Cover }}
{{ if .Params.UseRelativeCover }}{{ printf "%s%s%s%s" "<image src=\"" .Permalink .Params.Cover "\"/>"}} {{ if .Params.UseRelativeCover }}{{ printf "%s%s%s%s" "<img src=\"" .Permalink .Params.Cover "\"/>"}}
{{ else }}{{ printf "%s%s%s" "<image src=\"" (.Params.Cover | absURL) "\"/>"}} {{ else }}{{ printf "%s%s%s" "<img src=\"" (.Params.Cover | absURL) "\"/>"}}
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $images := .Resources.ByType "image" }} {{ $images := .Resources.ByType "image" }}
{{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }} {{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }}
{{ with $featured }}{{ printf "%s%s%s" "<image src=\"" $featured.Permalink "\"/>"}}{{ end }} {{ with $featured }}{{ printf "%s%s%s" "<img src=\"" $featured.Permalink "\"/>"}}{{ end }}
{{ end }} {{ end }}
{{ if .Site.Params.RssFullText }}{{ .Content | html }} {{ if .Site.Params.RssFullText }}{{ .Content | html }}