Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fontawesome.html « partials « layouts - github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1db829ab985915a06a690f3bb6e67c921a684e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>