{{- $pages := slice -}} {{- if .IsHome -}} {{- $pages = where .Site.RegularPages "Type" "not in" (slice "memex" "timeless" "site-infra" "reading-lists" "notes") -}} {{- else -}} {{- $pages = .Pages -}} {{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} {{- printf "" | safeHTML }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink | absURL }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" (.Permalink | absURL) .MediaType | safeHTML }} {{- end -}} {{ range $pages }}{{ $page := . }} {{ .Title | default (delimit (slice "An untitled" (.Date.Format "January") (.Type | singularize)) " ") }} {{ .Permalink | absURL }} {{ if .Page.Params.Audio }}{{end}} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ .Permalink | absURL }} {{ with .Params.bookmarkOf }} Thoughts on {{.}} {{ else }} {{ .Summary | html }} {{ end }} {{- range $i, $src := .Params.Media }} <img src="{{ path.Join $page.RelPermalink $src.url | absURL }}" {{ with $src.alt }}alt="{{ . }}" {{ end }}/><br/> {{- end }} {{ if .Params.bookmarkOf }} <p><i>{{ partial "bookmark-of.html" . | html }}</i></p> {{ end }} {{ .Content | html }} {{- range .Params.syndications}} {{ . }} {{- end }} {{- range $i, $src := .Params.Media }} {{ with $page.Resources.Get $src.url }} {{ end }} {{- end }} {{ end }}