LoveIt/layouts/_default/_markup/render-image.html

11 lines
475 B
HTML
Raw Normal View History

2020-01-31 11:46:28 +01:00
<figure>
{{- /* Lazyload */ -}}
{{- $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">
{{- $caption := .Title | default .Text -}}
{{- with $caption -}}
<figcaption class="image-caption">
{{- . -}}
</figcaption>
{{- end -}}
2020-01-31 11:46:28 +01:00
</figure>