mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 21:25:59 -06:00
6 lines
271 B
HTML
6 lines
271 B
HTML
{{ $icon_resource := resources.Get (printf "feather/icons/%s.svg" .) }}
|
|
{{ $icon := $icon_resource.Content }}
|
|
{{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }}
|
|
{{ $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon }}
|
|
{{ $icon | safeHTML }}
|