{{ define "styles" }}
{{ $author := partial "author-user.html" . }}
{{ end }}
{{ define "middle" }}
{{ partial "navigator-middle.html"
(dict
"Title" "Likes"
"Subtitle" (partial "count-likes.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 and (eq .Type $author) .Params.Liked }}
{{ $result = true }}
{{ $count = add $count 1 }}
{{ if le $count 10 }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ end }}
{{ if not $result }}
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}
{{ define "right" }}
{{- partial "navigator-right.html" . -}}
{{ end }}