{{ "" | safeHTML }} {{/* The XML declaration is emitted before anything else, including the variables below, since whitespace may not precede it. */}} {{ $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 := .Data.Pages.ByPublishDate.Reverse }} {{ $limit := .Site.Config.Services.RSS.Limit }} {{ if ge $limit 1 }} {{ $pages = first $limit $pages }} {{ end }} {{ .Permalink | strings.TrimSuffix "index.gmi" }} {{ .Site.Title }} {{ .PublishDate.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 }} {{ .PublishDate.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{ end }}