{{ $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 -}} {{ replace .Permalink "https://" "gemini://" }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} {{ if not .Date.IsZero }}{{ end }} {{ $.Site.Author.name }} Hugo -- gohugo.io {{ $.Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ $.Site.Author.name }} {{ $.Site.Params.Description }}{{ range $pages }} {{ replace .Permalink "https://" "gemini://" | safeURL }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} {{ end }}