congo/layouts/shortcodes/icon.html

9 lines
239 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 }}
<em>Icon not found.</em>
{{ end }}
2021-08-11 05:28:33 +00:00
</span>