- {{- with $image -}}
-
- {{- end -}}
-
- {{- $padding := "hx-p-4" -}}
- {{- with $subtitle -}}
- {{- $padding = "hx-pt-4 hx-px-4" -}}
- {{- end -}}
-
-
-
- {{- with $icon }}{{ partial "utils/icon.html" (dict "name" $icon) -}}{{- end -}}
- {{- $title -}}
-
- {{- with $subtitle -}}
- {{- $subtitle | markdownify -}}
- {{- end -}}
-
-{{- /* Strip trailing newline. */ -}}
+{{- partial "shortcodes/card" (dict
+ "page" .Page
+ "link" $link
+ "title" $title
+ "icon" $icon
+ "subtitle" $subtitle
+ "image" $image
+ "width" $width
+ "height" $height
+ "imageStyle" $imageStyle
+ )
+-}}