omegamma/layouts/partials/inline-svg.html

6 lines
167 B
HTML

{{ $svg := resources.Get . }}
{{ if eq $svg nil }}
cnt: {{ $svg.Content }}
{{ else }}
{{ $svg.Content | replaceRE "(width|height)=\"\\d+\"" "" | safeHTML }}
{{ end }}