{{ $skillID := replace (lower .name) " " "-" }} {{ if .id }} {{ $skillID = .id }} {{ end }} {{ $logoImage := "" }} {{ if .logo }} {{ $logoImage = resources.Get .logo }} {{/* svg don't support "Fit" operation */}} {{ if ne $logoImage.MediaType.SubType "svg" }} {{ $logoImage = $logoImage.Fit "24x24" }} {{ end }} {{ end }}
{{ if $logoImage }} {{ .name }} {{ end }}
{{ .name }}

{{ .summary | markdownify }}

{{ if or .popup .icons }}
{{ if .icons }} {{ range $icon := .icons }} {{ $iconImage := "" }} {{ $iconImage = resources.Get $icon }} {{ if ne $iconImage.MediaType.SubType "svg" }} {{ $iconImage = $iconImage.Fit "32x32" }} {{ end }} {{ end }} {{ end }}
{{ if and .popup ( .popup.showButton | default true ) }}
{{ end }}
{{ end }}
{{ if .popup }} {{ partial "partials/cards/skill-popup.html" (dict "skill" .) }} {{ end }}