add lazy loading

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

View File

@ -10,6 +10,7 @@
<img src='{{ .Get "src" }}' <img src='{{ .Get "src" }}'
{{- with .Get "mouse" }} title="{{.}}"{{ end -}} {{- with .Get "mouse" }} title="{{.}}"{{ end -}}
{{- with .Get "alt" }} alt="{{.}}"{{ end -}} {{- with .Get "alt" }} alt="{{.}}"{{ end -}}
loading="lazy"
> >
{{- if .Get "link"}}</a>{{ end -}} {{- if .Get "link"}}</a>{{ end -}}
{{- with .Get "caption" -}} {{- with .Get "caption" -}}