uci-hugo-doc/layouts/shortcodes/icon.html

6 lines
123 B
HTML

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