hugo-geekblog/layouts/shortcodes/icon.html
Robert Kaussow 3ccc8918bb
refactor: rename class .icon to .gblog-icon (#232)
BREAKING CHANGE: The class `.icon` was renamed to `.gblog-icon` to avoid conflicts.
2022-04-30 13:36:39 +02:00

6 lines
124 B
HTML

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