X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fshortcodes%2Fsvg.html;fp=layouts%2Fshortcodes%2Fsvg.html;h=cdde6cc14e6c734ac31cae2016fcb8877fc37a2c;hb=00bd3a19ecce5fbf041471128751311dc7c60b0a;hp=1575bc3adbe42a1efc363da5a4fd58bc1577682e;hpb=ed9943a3856aca00fd21cdb949c352338a2e702f;p=theme-danix.xyz.git diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html index 1575bc3..cdde6cc 100644 --- a/layouts/shortcodes/svg.html +++ b/layouts/shortcodes/svg.html @@ -1,4 +1,5 @@ -
-{{ $favicon := resources.Get "SVGs/linux.svg" }}
-{{ $favicon | absURL | readFile | safeHTML }}
-
+ +{{- $fname := print "SVGs/" ( .Get 0 ) ".svg" -}} +{{ $icon := resources.Get $fname }} +{{ $icon.Content | safeHTML }} +