freedom/layouts/shortcodes/image.html

15 lines
225 B
HTML
Raw Normal View History

2022-08-22 20:03:48 -04:00
{{ 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}}