2020-01-31 11:46:28 +01:00
|
|
|
<figure>
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Lazyload */ -}}
|
2020-02-03 04:46:30 +01:00
|
|
|
{{- $loading := resources.Get "svg/loading.svg" | minify -}}
|
2020-02-03 13:47:49 +01:00
|
|
|
<img src="{{ $loading.RelPermalink | safeURL }}" data-sizes="auto" data-src="{{ .Destination | safeURL }}" alt="{{ .Text }}"{{ with .Title }} title="{{ . }}"{{ end }} class="lazyload">
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- $caption := .Title | default .Text -}}
|
|
|
|
{{- with $caption -}}
|
|
|
|
<figcaption class="image-caption">
|
|
|
|
{{- . -}}
|
|
|
|
</figcaption>
|
|
|
|
{{- end -}}
|
2020-02-06 17:10:00 +01:00
|
|
|
</figure>
|