social services icons support #6

This commit is contained in:
Dmitry Kolosov 2021-05-17 21:04:42 +03:00
parent dc52fdf1b0
commit 269283077f
27 changed files with 268 additions and 106 deletions

View 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>