{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}} {{- $icon := $icon_resource.Content -}} {{- $icon = replaceRE `` (printf `%s icon` .) $icon -}} {{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}} {{- $icon | safeHTML -}}