2023-04-11 12:46:36 -04:00
|
|
|
<div class="media-container">
|
2022-11-09 15:44:15 -05:00
|
|
|
{{ if .Get "href"}}
|
2022-08-22 20:03:48 -04:00
|
|
|
<a href='{{.Get "href"}}'>
|
|
|
|
{{end}}
|
2022-09-16 16:04:37 -04:00
|
|
|
<img loading="lazy"
|
2022-08-22 20:03:48 -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:15 -05:00
|
|
|
{{if .Get "caption"}}
|
|
|
|
<p class="caption">
|
|
|
|
{{.Get "caption"}} {{if .Get "source"}}<a href='{{.Get "source"}}'>Source</a>{{end}}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|