$thumbnail = .Params.Thumbnail }}{{ end }}
    {{ end -}}
    {{ if not $args.ratio }}
        {{- if and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.ratio }}{{ $ratio = .Params.Thumbnail.ratio }}{{ end -}}
    {{ end }}
    {{- if not $args.icon }}{{ $icon = .Params.icon }}{{ end -}}
    {{- if not $args.anchor }}{{ $anchor = (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.anchor) "") }}{{ end -}}
{{- end -}}

{{- $style := $args.iconStyle }}
{{ if (hasPrefix $args.orientation "horizon