{{- define "styles" -}} {{- $author := partial "function-authors-data.html" . -}} {{- $author = $author.user -}} {{- end -}} {{- define "header" -}} {{- partial "navigator-middle.html" (dict "Title" "Media" "Subtitle" (print (partial "count-media.html" .) " " "Total") "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" "Id" "back" "Context" . ) -}} {{- partial "profile.html" . -}} {{- end -}} {{- define "middle" -}} {{- $author := partial "function-authors-data.html" . -}} {{- $notFeeds := where .Site.RegularPages "Params.feed" "eq" nil -}} {{- $authors := where .Site.RegularPages "Section" $author.user -}} {{- $filteredPages := $authors | intersect $notFeeds -}} {{- $count := 0 -}} {{- range first 100 $filteredPages -}} {{- if eq $count 10 -}} {{- break -}} {{- end -}} {{- if or (in .Content "") (in .Content "") (in .Content "") -}} {{- partial "render-embed.html" . -}} {{- $count = add $count 1 -}} {{- end -}} {{- end -}} {{- if not $count -}} {{- end -}} {{- end -}} {{- define "right" -}} {{- partial "navigator-right.html" . -}} {{- end -}}