{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get "icon")) }} {{ $text := .Get "text" -}} {{ $link := .Get "link" -}} {{ $text }} {{ if $icon }} {{ $icon.Content | safeHTML }} {{ else }} {{ errorf `[BLOWFISH] Shortcode "icon" error in "%s": Resource "%s" not found. Check the path is correct or remove the shortcode.` .Page.Path (printf "icons/%s.svg" ($.Get 0)) }} {{ end }}