}
{{ end }}

{{with .anchor | default $meta.anchor | default ($ctx.Param "image.anchor") }}
  {{ $anchor_opts := (slice "Smart" "Center" "TopLeft" "Top" "TopRight" "Left" "Right" "BottomLeft" "Bottom" "BottomRight") }}
  {{ if not (in $anchor_opts .) }}
    {{ partial "hri/private/utils/options-error" (dict 
      "var" "anchor"
      "val" .
      "opts" (delimit $anchor_opts ", ")
      "ctx" $.error_ctx
    ) }}
  {{ else }}
    {{ $s.SetInMap "params" "anchor" . }}
  {{ end }}
{{ end }}

{{ with .backgr