diff --git a/layouts/rss.xml b/layouts/rss.xml index 444a1ee..57b9002 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -11,7 +11,7 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} @@ -28,19 +28,18 @@ {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} - {{ range $pages }} + {{ range $pages }}{{ if ne .Params.rss_ignore true }} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ if .Site.Params.rssFullContent }} - {{ .Content | html }} - {{ else }} - {{ .Summary | html }} - {{ end }} + {{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}} + {{- if .Site.Params.rssFullContent}} + {{ (printf "" .Content) | safeHTML }} + {{- end }} - {{ end }} + {{ end }}{{ end }} - + \ No newline at end of file