mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-12-10 01:39:05 +00:00
init
This commit is contained in:
7
layouts/shortcodes/icon.html
Normal file
7
layouts/shortcodes/icon.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<span class="icon">
|
||||
{{- $fname:=print "assets/icons/" ( .Get 0 ) ".svg" -}}
|
||||
{{- $path:="<path" -}}
|
||||
{{- $fill:="<path fill=\"currentColor\"" -}}
|
||||
{{- replace (readFile $fname) $path $fill | safeHTML -}}
|
||||
</span>
|
||||
{{- /**/ -}}
|
||||
Reference in New Issue
Block a user