{{ define "styles" }} {{ $author := partial "author-user.html" . }} {{ end }} {{ define "middle" }} {{ partial "navigator-middle.html" (dict "Title" "Media" "Subtitle" (partial "count-media.html" .) "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" "Id" "back" "Context" . ) }} {{ partial "profile.html" . }} {{- $author := partial "author-user.html" . -}} {{ $count := 0 }} {{ $result := false }} {{ range .Site.Pages }} {{ if or (in .Content "
") (in .Content "") (in .Content "") (in .Content "") }} {{ if eq .Type $author }} {{ $result = true }} {{ $count = add $count 1 }} {{ if le $count 10 }} {{ .Render "summary" }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if not $result }} {{ end }} {{ partial "pagination.html" . }} {{ end }} {{ define "right" }} {{- partial "navigator-right.html" . -}} {{ end }}