{{- $opts := dict "page" . "title" (.Get "title") "icon" (.Get "icon") "color" (.Get "color") "inner" .Inner }} {{- with .Parent }} {{- partial "inline/card.html" $opts }} {{- else }}
{{- partial "inline/card.html" $opts }}
{{- end }} {{- define "_partials/inline/card.html" }}
{{- $colors := slice "yellow" "purple" "green" "red" "blue" }} {{- $color := .color }} {{- if not (in $colors .color) }} {{ $color = "yellow" }} {{- end }} {{ $class := printf "svg-inline-custom mt-0 me-3 card-icon icon-%s" $color }} {{- with .icon }} {{ partial "inline-svg" (dict "src" . "stroke-width" "1.5" "height" "1.875rem" "width" "1.875rem" "class" $class )}} {{- end }} {{- with .title }} {{ . }} {{- end }}
{{ with .inner }}
{{ . | markdownify }}
{{ end }}
{{- end -}}