{{- if hasPrefix .Destination "mailto:" -}} {{- $text := replace (replace .Text "-" "--") "_" "__" -}} {{- $icon := resources.GetRemote (printf "https://img.shields.io/badge/email-%s-blue.svg?style=flat-square" $text) -}} {{- else -}} {{- .Text | safeHTML -}} {{- end -}}