blog/layouts/shortcodes/icons.html

6 lines
222 B
HTML
Raw Normal View History

2022-03-11 05:02:10 +00:00
<span class="inline-svg" >
{{- $fname:=print "icons/" ( .Get 0 ) ".svg" -}}
{{- $path:="<path" -}}
{{- $fill:="<path fill=\"currentColor\"" -}}
{{ replace (readFile $fname) $path $fill | safeHTML }}
</span>