{{ $alt := .Get "alt" }} {{ $link := .Get "link" }} {{ $height := .Get "height" }} {{ $maxheight := .Get "maxheight" }} {{ $maxwidth := .Get "maxwidth" }} {{ $method := .Get "method" }} {{ $options := .Get "options" }} {{ $raw := .Get "raw" }} {{ $src := .Get 0 | default (.Get "src") }} {{ $title := .Get "title" }} {{ $width := .Get "width" }} {{ if not $src }} {{ errorf "paige/image: invalid src: %q" $src }} {{ end }} {{ $content := partial "paige/img.html" (dict "alt" $alt "class" "img-fluid" "height" $height "maxheight" $maxheight "maxwidth" $maxwidth "method" $method "options" $options "page" .Page "raw" $raw "src" $src "title" $title "width" $width ) }} {{ if $link }} {{ $content = partial "paige/a.html" (dict "content" $content "href" $link ) }} {{ end }}