{{ $sectionNum := (len .Pages) }} {{ if gt $sectionNum 0 }}
{{ $category := .Params.category }} {{ $categoryIcon := (print "svgs/showcase/" (.Params.categoryIcon | default "code") ".svg") }} {{ range .Pages }}
{{ .Title }} {{ if .Params.thumb }} {{ .Title }} {{ end }}
{{ .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 }}
{{ end }}
{{ end }}