{{ $pinnedNum := 0 }} {{ range .Pages }} {{ $pinnedNum = add $pinnedNum (len (where .Pages "Params.pinned" true)) }} {{ end }} {{ if gt $pinnedNum 0 }}
    {{ range .Pages }} {{ $category := .Params.category }} {{ $categoryIcon := (print "svgs/showcase/" (.Params.categoryIcon | default "code") ".svg") }} {{ range where .Pages "Params.pinned" true }}
  1. {{ .Title }}
    {{ .Description | markdownify }}
    {{ partial $categoryIcon (dict "width" 14 "height" 14) }} {{ $category }}
    {{ range .Params.links }} {{ $icon := (print "svgs/showcase/" (.icon | default "code") ".svg") }} {{ partial $icon (dict "width" 14 "height" 14) }} {{ .name }} {{ end }} {{ with .Params.repo }} {{ partial "svgs/social/github.svg" (dict "width" 14 "height" 14) }} Repository {{ end }}
    {{ with .Params.shields }}
    {{ range . }} {{ .name }} {{ end }}
    {{ end }}
  2. {{ end }} {{ end }}
{{ end }}