{{ $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} {{- if or $.IsHome $.IsSection }} {{- $pages = $pctx.RegularPages }} {{- else }} {{- $pages = $pctx.Pages }} {{- end }} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = $pages | first $limit }} {{- end -}} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} {{ if not .Date.IsZero }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }} {{ .Permalink }} {{ $.Site.Author.name }} {{ $.Site.Author.email }} Hugo -- gohugo.io{{ range $pages }} {{ `<![CDATA[` | safeHTML }}{{ .Title }}]]> {{ .Permalink }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- if .Content }} {{ ` {{- end }} {{ end }}