{{/* Docs: https://docs.hugoblox.com/content/writing-markdown-latex/ */}} {{- $url := .Get "url" -}} {{- $is_external := strings.HasPrefix $url "http" -}} {{- $url = cond (strings.HasPrefix $url "/") ($url | relURL) $url -}} {{- $icon := .Get "icon" -}} {{- $title := .Get "title" -}} {{- $subtitle := .Get "subtitle" -}} {{/* Adjust padding depending on content */}} {{- $padding := "p-4" -}} {{- with $subtitle -}} {{- $padding = "pt-4 px-4" -}} {{- end -}} {{- with $icon }} {{ partial "functions/get_icon" (dict "name" $icon "attributes" "style=\"height: 1em; width: 1em;\"") -}} {{- end -}} {{- $title -}} {{- with $subtitle -}}
{{- $subtitle | markdownify -}}
{{- end -}}