{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}} {{- if $iconFile -}} {{- $iconFile.Content | safeHTML -}} {{- else -}} {{- warnf "Error: icon '%v.svg' is not found under 'assets/icons' folder" . -}} {{- end -}}