{{/* Render raw svg icon from hugo.Data */}} {{- $icon := index hugo.Data "icons" .name -}} {{- if not $icon -}} {{ errorf "icon %q not found" .name }} {{- end -}} {{- $icon = $icon | safeHTML -}} {{- if .attributes -}} {{- $icon = replaceRE "