mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 15:05:38 -06:00
8 lines
387 B
HTML
8 lines
387 B
HTML
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
|
|
{{ if $icon }}
|
|
<span class="relative inline-block align-text-bottom icon">
|
|
{{ $icon.Content | safeHTML }}
|
|
</span>
|
|
{{ 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 }}
|