{{- $authorName := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} {{- with .name }} {{- $authorName = . }} {{- end }} {{- else }} {{- $authorName = . }} {{- end }} {{- end }} {{- if not $authorName }} {{- errorf "Missing author" }} {{- end }} {{- $authorEmail := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} {{- with .email }} {{- $authorEmail = . }} {{- end }} {{- end }} {{- end -}} {{- $pages := where .Site.RegularPages "Section" "entry" }} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = first $limit $pages }} {{- end -}} {{ "" | safeHTML }} {{ .Permalink | strings.TrimSuffix "index.gmi" }} {{ .Site.Title }} {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{ $authorName }} {{- with $authorEmail }} {{ . }}{{ end }} Hugo -- gohugo.io {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} {{ .Site.Params.Description }}{{ range $pages }} {{ .Permalink | strings.TrimSuffix "index.gmi" }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{ end }}