valor/layouts/shortcodes/image.html
2022-08-17 14:47:54 -04:00

14 lines
225 B
HTML

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