{{- define "styles" -}} {{- end -}} {{- define "header" -}} {{- $author := .Section -}} {{- $authors := where .Site.RegularPages "Section" $author -}} {{- $items := where .Site.RegularPages ".Params.marked" true -}} {{- $filteredPages := $authors | intersect $items -}} {{- $paginator := .Paginate $filteredPages -}} {{- partial "navigator-middle.html" (dict "Context" . "IconLabel" "Back" "Id" "back" "Title" "Marks" "Icon" "arrow-left" "Subtitle" (print (partial "count-marks.html" .) " " "Total") "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | relURL)) ("" | relURL)) ) -}} {{- partial "profile.html" . -}} {{- end -}} {{- define "middle" -}} {{- range .Paginator.Pages -}} {{- partial "render-embed.html" . -}} {{- else -}} {{- end -}} {{- end -}} {{- define "footer" -}} {{- partial "pagination.html" . -}} {{- partial "footer.html" . -}} {{- end -}} {{- define "right" -}} {{- partial "navigator-right.html" . -}} {{- end -}}