{{- /* {{< figure "bild.jpg" "Bildunterschrift" >}} */ -}} {{- $src := or (.Get "src") (.Get 0) -}} {{- $caption := or (.Get "caption") (.Get 1) -}} {{- with .Page.Resources.GetMatch $src -}} {{- $img := .Resize "1200x webp q82" }}
{{ $caption | plainify }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{- else -}} {{- warnf "figure: %q not found in %s" $src .Page.Path -}} {{- end -}}