blog/layouts/partials/icons.html
2022-03-11 10:32:10 +05:30

6 lines
No EOL
217 B
HTML

<span class="inline-svg" >
{{- $fname:=print "icons/" . ".svg" -}}
{{- $path:="<path" -}}
{{- $fill:="<path fill=\"currentColor\"" -}}
{{ replace (readFile $fname) $path $fill | safeHTML }}
</span>