{{- /* This template was based from the Atom syndication format at IETF RFC #4287 (https://tools.ietf.org/html/rfc4287). */ -}} {{ printf "" | safeHTML }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{- range .AlternativeOutputFormats }} {{- printf "" .Rel .MediaType .Permalink | safeHTML }} {{- end }} {{ with .Site.Copyright }}{{ . }}{{ else }}© {{ now.Year }} {{ with .Site.Author.name }}{{ . }}{{ end }}{{ end }} Hugo {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} {{ "" | absLangURL }} {{- /* ICON, AHOY! */ -}} {{ "icon.png" | absURL }} {{ with .Site.Author }} {{ .name }} {{ with .email }}{{ . }}{{ end }} {{ end }} {{- /* Generate each valid regular pages (with as an individual entry in the feed. */ -}} {{ $limit := cond (gt .Site.Params.feedLimit 0) .Site.Params.feedLimit 10 }} {{ $pages := .Pages }} {{ if .IsHome }} {{ $pages = where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }} {{ end }} {{ range first $limit (where $pages "Params.hidden" "!=" true) }} {{ .Permalink }} {{ .Title }} {{- range .Params.author }} {{ .name }}{{ with .email }} {{ . }}{{ end }} {{- end }} {{- range .Params.tags }} {{- end }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} {{ with .Params.copyright }} {{ . | safeHTML }} {{ end }} {{ .Content | html }} {{ end }}