{{- $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 }} {{- with .Site.Config.Services.RSS.Limit -}} {{- if ge . 1 -}} {{- $pages = $pages | first . -}} {{- end -}} {{- end -}} {{ print "" | safeHTML }} {{- printf "" | safeHTML }} {{ with .Site.Author.name }} {{ . }} {{ $.Site.BaseURL }} {{ end }} Hugo {{ .Site.Hugo.Version }} {{ if .Site.Params.feedUUID }}urn:uuid:{{.Site.Params.feedUUID }}{{ else }}{{ .Permalink }}{{ end }} {{ with .OutputFormats.Get "atom" }} {{ printf `` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{ end }} {{ range .AlternativeOutputFormats }} {{ printf `` .MediaType.Type .Permalink $.Site.LanguageCode | safeHTML }} {{ end }} {{ with .Site.Params.icon }}{{ . | absURL }}{{ end }} {{ with .Site.Params.logo }}{{ . | absURL }}{{ end }} {{ with .Site.Copyright }}{{ replace . "{year}" now.Year }}{{ end }} {{ with .Site.Params.Description }}{{ . }}{{ end }} {{ .Site.Title }} {{ now.Format .Site.Params.dateFormatAtomFeed | safeHTML }} {{ with .Site.Params.icon96 }}{{ . | absURL }}{{ end }} {{ range $pages }} {{ with .Params.Author }} {{ . }} {{ end }} tag:{{ $u := urls.Parse .Permalink }}{{ $u.Hostname }},{{ .Date.Format .Site.Params.dateFormatTag }}:{{ replace $u.Path "#" "_" }} {{ .Title }} {{ .Date.Format .Site.Params.dateFormatAtomFeed | safeHTML }} {{ .Lastmod.Format .Site.Params.dateFormatAtomFeed | safeHTML }} {{ with .Description }}{{ . }}{{ end }} {{ printf "" .Content | safeHTML }} {{ end }}