splitted up stylesheet and added lots of scaffolding to it. Style needs working.
[theme-danix.xyz.git] / layouts / partials / funcs / svg.html
index 44e167b..7afdd22 100644 (file)
@@ -1,4 +1,5 @@
 <span class="inline-svg">
-{{ $svg := .Get 0 }}
-{{ readFile ( print "SVGs/" . ".svg" ) | safeHTML  }}
+{{- $fname:=print "SVGs/" .username ".svg" -}}
+{{ $icon := resources.Get $fname }}
+{{ $icon.Content | safeHTML }}
 </span>