Files
caldwell/layouts/partials/components/hero/process.html
2025-09-13 21:36:59 +00:00

16 lines
404 B
HTML

{{- $src := "" -}}
{{- $caption := "" -}}
{{- $title := "" -}}
{{- $alt := "" -}}
{{- if reflect.IsMap . -}}
{{- $src = .src -}}
{{- $caption = .caption | default "" -}}
{{- $title = .title | default $caption | plainify -}}
{{- $alt = .alt | default $title | plainify -}}
{{- else -}}
{{- $src = . -}}
{{- end -}}
{{- return (dict "src" $src "caption" $caption "title" $title "alt" $alt) -}}