congo/layouts/shortcodes/icon.html

9 lines
256 B
HTML

<span class="relative inline-block align-text-bottom icon">
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
{{ if $icon }}
{{ $icon.Content | safeHTML }}
{{ else }}
<em>{{ i18n "shortcode.icon_none" }}</em>
{{ end }}
</span>