{{ $pinnedNum := 0 }} {{ $isOdd := false}} {{ range .Pages }} {{ $pinnedNum = add $pinnedNum (len (where .Pages "Params.pinned" true)) }} {{ end }} {{ if eq (mod $pinnedNum 2) 1 }} {{ $isOdd = true }} {{ end }} {{ if gt $pinnedNum 0 }}
{{ i18n "showcase-pinned" }}
{{ range .Pages }} {{ $category := .Params.category }} {{ range where .Pages "Params.pinned" true }}
{{ .Title }}
{{ .Description }}
{{ partial "svgs/etc/code.svg" (dict "width" 14 "height" 14) }} {{ $category }}
{{ partial "svgs/social/github.svg" (dict "width" 14 "height" 14) }} Repository
{{ end }} {{ end }} {{ if $isOdd }}
{{ end }}
{{ end }}