{{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if lt $limit 1 -}} {{- $limit = .Paginator.TotalNumberOfElements -}} {{- 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 -}} {{- $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") ) -}} {{- $atomSelf := "" -}} {{- $atomPrevious := "" -}} {{- $atomNext := "" -}} {{- with .OutputFormats.Get "RSS" -}} {{- $atomSelf = printf `` .Permalink .MediaType | safeHTML -}} {{- with $.Paginator.Prev -}} {{- $atomPrevious = printf `` .URL | safeHTML -}} {{- end -}} {{- with $.Paginator.Next -}} {{- $atomNext = printf `