mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
Switch themes to minimo
This commit is contained in:
5
themes/minimo/layouts/shortcodes/svg.html
Normal file
5
themes/minimo/layouts/shortcodes/svg.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ $svg := .Get 0 }}
|
||||
<svg class='icon' viewbox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'>
|
||||
{{ $icon := print "svg/" $svg ".svg" | resources.Get }}
|
||||
{{ $icon.Content | replaceRE `(?s)^.*<svg.*?>(.*)<\/svg>.*$` "$1" | safeHTML }}
|
||||
</svg>
|
Reference in New Issue
Block a user