congo/layouts/shortcodes/icon.html

9 lines
254 B
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
<span class="relative inline-block align-text-bottom icon">
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
{{ if $icon }}
{{ $icon.Content | safeHTML }}
{{ else }}
2021-08-17 06:48:08 +00:00
<em>{{ i18n "shortcode.no_icon" }}</em>
{{ end }}
2021-08-11 05:28:33 +00:00
</span>