juju.re/jujure/themes/hello_friend/layouts/shortcodes/image.html
Julien CLEMENT 9c991511b4 embedded hello friend because i'm lazy
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2023-05-01 07:48:08 +02:00

4 lines
260 B
HTML

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