hugo-geekblog/layouts/shortcodes/icon.html

6 lines
118 B
HTML

{{ $id := .Get 0 }}
{{- with $id -}}
<svg class="icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
{{- end -}}