{{- $parent := eq (len .Page.Ancestors) 1 -}}
{{- $modified := partial "function-page-modified.html"
(dict
"Context" .
"Label" "webfeeds.html"
)
-}}
{{- if (and $parent $modified) -}}
{{- $sources := slice -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $feeds := partial "function-generate-feeds.html" . -}}
{{- range $author.feeds.rss -}}
{{- $data := split . " " -}}
{{- $url := delimit (first 1 $data) "" -}}
{{- $sources = $sources | append (string $url) -}}
{{- end -}}
{{- range $source := $sources -}}
{{- range $distinct := first 1 (where $feeds "FeedSourceLink" "eq" $source) -}}
{{- $href := or $distinct.FeedHome (print "http://" $distinct.FeedSourceDomain) -}}
{{- $favicon := print (partial "function-paths.html").media "/favicon." (.FeedSourceLink | anchorize) ".png" -}}
{{- partial "author-card.html" (dict
"Href" ($href)
"HrefTitle" ($href)
"Source" ($favicon | relURL)
"Author" ($distinct.FeedName)
"Alternate" ($distinct.FeedName)
"Name" ($distinct.FeedName)
"Title" ($distinct.FeedName)
"Date" ($distinct.FeedDateTime)
"DateTime" ($distinct.FeedDateTime)
"DateTitle" ($distinct.FeedDateTitle)
"Feed" ($distinct.FeedSourceLink)
"Host" ($distinct.FeedSourceDomain)
"Rel" (site.Params.site.referrer.anchor)
"FeedTitle" (print "Read" " " $distinct.FeedName)
"Expired" (not (fileExists (print "public/" $favicon)))
)
-}}
{{- end -}}
{{- end -}}
{{- end -}}