adding all svgs and partials to handle them in order to ask for help in the forums.
[theme-danix.xyz.git] / layouts / partials / funcs / svg.html
... / ...
CommitLineData
1<span class="inline-svg">
2{{- $fname:=print "SVGs/" . ".svg" -}}
3{{- $path:="<path" -}}
4{{- $fill:="<path fill=\"currentColor\"" -}}
5{{ replace (readFile $fname) $path $fill | safeHTML }}
6</span>