add lazy loading
This commit is contained in:
parent
a2b1aec0e1
commit
22ba330838
@ -8,8 +8,9 @@
|
|||||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
|
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
|
||||||
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
|
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
|
||||||
<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" -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user