initial
This commit is contained in:
15
blog/themes/anubis/layouts/partials/font-awesome.html
Normal file
15
blog/themes/anubis/layouts/partials/font-awesome.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<span class="inline-svg" >
|
||||
|
||||
{{ $dict := newScratch }}
|
||||
|
||||
{{ if (eq .custom true) }}
|
||||
{{ $dict.Set "filename" (print "static/fa-icons/" .iconName ".svg") }}
|
||||
{{ else }}
|
||||
{{ $dict.Set "filename" (print "themes/anubis/static/fa-icons/" .iconName ".svg") }}
|
||||
{{ end }}
|
||||
|
||||
{{- $path:="<path" -}}
|
||||
{{- $fill:="<path fill=\"currentColor\"" -}}
|
||||
{{ replace (readFile ($dict.Get "filename")) $path $fill | safeHTML }}
|
||||
|
||||
</span>
|
||||
Reference in New Issue
Block a user