hugo-geekblog/layouts/shortcodes/icon.html
Robert Kaussow 42968b6a30
feat: auto-load custom svg sprites from assets folder (#40)
BREAKING CHANGE:

The icon gdoc_telescope was removed. If you are using this icon you have to replace it.

Build-in icons are prefixed with gdoc_ now. If you use built-in icons in e.g. menus you have to rename these references!
2021-05-23 22:04:57 +02:00

6 lines
116 B
HTML

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