website/themes/lynx/layouts/shortcodes/icon.html
2023-07-31 14:19:39 +02:00

8 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>