{{ $src := "featured" }}
{{ $ctx := . }}
{{ $imgMap := dict }}

{{ with .Params.featured }}
  {{ if and (eq $.Type "doc") (eq . "icon") }}
    {{ with $id := partial "img/func/params/get-icon-id" $ctx }}
      {{ $iconstr := partial "material-symbol" (dict "id" $id "ctx" $ctx "size" "xl" ) }}
      {{ $iconstr = replaceRE `</?span[^>]*>` "" $iconstr }}
      {{ $imgMap = dict
        (slice "params" "svgstr") $iconstr
        (slice "params" "class" "width") "tiny"
        (slice "params" "contClass" "type"