valor/layouts/shortcodes/image.html

15 lines
241 B
HTML
Raw Normal View History

2022-08-17 14:47:54 -04:00
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
2022-09-15 17:12:31 -04:00
<img loading="lazy"
2022-08-17 14:47:54 -04:00
src='{{.Get "src"}}'
{{if .Get "alt"}}
alt='{{.Get "alt"}}'
{{end}}
{{if .Get "float"}}
style='float:{{.Get "float"}}'
{{end}}>
{{ if .Get "href"}}
</a>
{{end}}