add lazy loading

This commit is contained in:
Oliver Atkinson 2024-04-01 10:25:57 -06:00
parent a2b1aec0e1
commit 22ba330838

View File

@ -8,8 +8,9 @@
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
<img src='{{ .Get "src" }}'
{{- with .Get "mouse" }} title="{{.}}"{{ end -}}
{{- with .Get "alt" }} alt="{{.}}"{{ end -}}
{{- with .Get "mouse" }} title="{{.}}"{{ end -}}
{{- with .Get "alt" }} alt="{{.}}"{{ end -}}
loading="lazy"
>
{{- if .Get "link"}}</a>{{ end -}}
{{- with .Get "caption" -}}