update layouts
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{{ $icon := .icon }}
|
||||
{{ $class := .class | default "" }}
|
||||
{{ $svg := printf "icons/%s.svg" $icon | resources.Get }}
|
||||
{{ if $svg }}
|
||||
<span class="icon {{ $class }}">{{ $svg.Content | safeHTML }}</span>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user