valor/layouts/shortcodes/image.html
2022-09-15 17:12:31 -04:00

14 lines
241 B
HTML

{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
<img loading="lazy"
src='{{.Get "src"}}'
{{if .Get "alt"}}
alt='{{.Get "alt"}}'
{{end}}
{{if .Get "float"}}
style='float:{{.Get "float"}}'
{{end}}>
{{ if .Get "href"}}
</a>
{{end}}