{{- $data := slice -}} {{- $author := partial "function-authors-data.html" . -}} {{- $filteredPages := partial "function-filters-content.html" .Site.RegularPages -}} {{- range (where $filteredPages "Section" $author.user) -}} {{- if in .Content "" -}} {{- $data = $data | append (dict "srcset" (delimit (findRE `(?sU)\s{8}srcset=".*"` .Content 1) "") "type" (delimit (findRE `(?sU)\s{8}type=".*"` .Content 1) "") "alt" (delimit (findRE `(?sU)\s{8}alt=".*"` .Content 1) "") "height" (delimit (findRE `(?sU)\s{8}height=".*"` .Content 1) "") "src" (delimit (findRE `(?sU)\s{8}src=".*"` .Content 1) "") "style" (delimit (findRE `(?sU)\s{8}style=".*"` .Content 1) "") "title" (delimit (findRE `(?sU)\s{8}title=".*"` .Content 1) "") "width" (delimit (findRE `(?sU)\s{8}width=".*"` .Content 1) "") "relatedHref" .Permalink ) -}} {{- end -}} {{- if eq (len $data) 6 -}} {{- break -}} {{- end -}} {{- end -}} {{- if $data -}} {{- range $image := $data }} {{- with $image.srcset -}} {{- end -}} {{ end }} {{- end -}}