2022-11-09 15:44:31 -05:00
|
|
|
<div class="image-container">
|
|
|
|
{{ if .Get "href"}}
|
2022-08-17 14:47:54 -04:00
|
|
|
<a href='{{.Get "href"}}'>
|
|
|
|
{{end}}
|
2022-11-09 15:44:31 -05: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}}
|
2022-11-09 15:44:31 -05:00
|
|
|
{{if .Get "caption"}}
|
|
|
|
<p class="caption">
|
|
|
|
{{.Get "caption"}} {{if .Get "source"}}<a href='{{.Get "source"}}'>Source</a>{{end}}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|