{{- $parent := eq (len .Page.Ancestors) 1 -}} {{- $modified := partial "function-page-modified.html" (dict "Context" . "Disable" true ) -}} {{- if (and $parent $modified) -}} {{- $items := slice -}} {{- $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 -}} {{- $inner := 1 -}} {{- if eq (len $sources) 1 -}} {{- $inner = 3 -}} {{- end -}} {{- range $source := (first 3 $sources) -}} {{- range $distinct := first $inner (where $feeds "FeedSourceLink" "eq" $source) -}} {{- $items = $items | append $distinct -}} {{- end -}} {{- end -}} {{- range (sort $items "FeedDateTime" "desc") -}}

{{ or .FeedTitle (truncate 50 "..." (or .FeedContentShort .FeedDescriptionShort)) }}

{{ if gt (len .FeedDescriptionShort) (len .FeedContentShort) -}} {{ or .FeedDescriptionShort .FeedTitle }} {{- else -}} {{ or .FeedContentShort .FeedTitle }} {{- end }}
{{ .FeedSourceTitle }}

{{- end -}} {{- end -}}