{{ $_hugo_config := `{ "version": 1 }` }} {{ if .IsNamedParams }} {{ $.Scratch.Add "image" ( .Get "image") }} {{ $.Scratch.Add "alt" ( .Get "alt") }} {{ else }} {{ $.Scratch.Add "image" "" }} {{ $.Scratch.Add "alt" "" }} {{ end }} {{ $image := $.Scratch.Get "image" }} {{ $alt := $.Scratch.Get "alt" }}