{{- $pageContext := . -}}
{{- if .IsHome -}}
{{- $pageContext = .Site -}}
{{- end -}}
{{- $pages := $pageContext.RegularPages -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- $lastBuildDate := now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML -}}
{{- if not .Date.IsZero -}}
{{- $lastBuildDate = .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML -}}
{{- end -}}
{{- $atomLink := "" -}}
{{- with .OutputFormats.Get "RSS" -}}
{{- $atomLink = printf "" .Permalink .MediaType | safeHTML -}}
{{- end -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $title := partial "base-title.html" . -}}
{{- $description := partial "base-title.html" . -}}
{{- if (eq .Page.Kind "section") -}}
{{- $title = $author.name -}}
{{- $description = $author.description | markdownify | html | htmlUnescape -}}
{{- end -}}
{{- $profile := $author.picture.profile -}}
{{- $file := not (urls.Parse $profile).Host -}}
{{- if $file -}}
{{- $profile = print $author.user "/" $profile -}}
{{- end -}}
{{- $image := partial "function-caches-images.html"
(dict
"Source" $profile
"Fit" "160x160"
"Target" (print (partial "function-paths.html" "media") "/" $author.user "/")
"Copy" (print (partial "function-paths.html" "media") "/" $author.user "/" (path.Base $profile))
"AlternateCopy" (print (partial "function-paths.html" "media") "/" $author.user "/" (path.BaseName $profile) ".webp")
)
-}}
{{- print "" | safeHTML }}
{{ print "" | safeHTML }}
{{ $title }}
{{ .Permalink }}
{{ $description }}
{{ .Site.LanguageCode }}
{{ partial "author-user.html" . }}
{{ $title }}
{{ $image.Permalink }}
{{ .Permalink }}
{{ $lastBuildDate }}
{{ $atomLink }}
{{- range $pages }}
{{ if and (not .Params.Unlisted) (not .ExpiryDate) }}
-
{{ .Summary | htmlUnescape }}
{{ .Permalink }}
{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
{{ .Permalink }}
{{- partial "function-content.html" .Content | html -}}
{{- print "
" | html -}}
{{- partial "rss-tags.html" . | html -}}
{{- end -}}
{{ end }}