website/themes/lynx/layouts/shortcodes/icon.html

9 lines
256 B
HTML
Raw Permalink Normal View History

2023-07-31 14:19:39 +02: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 }}
<em>{{ i18n "shortcode.icon_none" }}</em>
{{ end }}
</span>