5 lines
282 B
5 lines
282 B
{{ if .Get "src" }}
|
|
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" loading="lazy" {{ end }}
|
|
class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }}
|
|
style="{{ . | safeCSS }}" {{ end }} />
|
|
{{ end }}
|