23 lines
No EOL
425 B
HTML
23 lines
No EOL
425 B
HTML
<div class="media-container">
|
|
{{ if .Get "href"}}
|
|
<a href='{{.Get "href"}}'>
|
|
{{end}}
|
|
<img loading="lazy"
|
|
src='{{.Get "src"}}'
|
|
{{if .Get "alt"}}
|
|
alt='{{.Get "alt"}}'
|
|
{{end}}
|
|
{{if .Get "float"}}
|
|
style='float:{{.Get "float"}}'
|
|
{{end}}>
|
|
{{ if .Get "href"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .Get "caption"}}
|
|
<p class="caption">
|
|
{{.Get "caption"}} {{if .Get "source"}}<a href='{{.Get "source"}}'>Source</a>{{end}}
|
|
|
|
</p>
|
|
{{end}}
|
|
|
|
</div> |