{{- define "styles" -}} {{- $author := partial "function-authors-data.html" . -}} {{- $author = $author.user -}} {{- end -}} {{- define "middle" -}} {{- $author := partial "function-authors-data.html" . -}} {{- $author = $author.user -}} {{- $users := where .Site.RegularPages "Section" $author -}} {{- $likes := where .Site.RegularPages ".Params.liked" true -}} {{- $filteredPages := $users | intersect $likes -}} {{- $paginator := .Paginate $filteredPages -}} {{- partial "navigator-middle.html" (dict "Context" . "IconLabel" "Back" "Id" "back" "Title" "Likes" "Icon" "arrow-left" "Subtitle" (partial "count-likes.html" .) "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) "/") ) -}} {{- partial "profile.html" . -}} {{- range $paginator.Pages -}} {{- partial "render-embed.html" . -}} {{- else -}} {{- end -}} {{- partial "pagination.html" . -}} {{- end -}} {{- define "right" -}} {{- partial "navigator-right.html" . -}} {{- end -}}