Add lazy loading
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
src="{{- .RelPermalink -}}"
|
src="{{- .RelPermalink -}}"
|
||||||
width="{{- .Width -}}"
|
width="{{- .Width -}}"
|
||||||
height="{{- .Height -}}"
|
height="{{- .Height -}}"
|
||||||
|
loading="lazy"
|
||||||
{{ with $imageData.title }}title="{{- . -}}"{{ end }}
|
{{ with $imageData.title }}title="{{- . -}}"{{ end }}
|
||||||
{{ with $imageData.alt }}alt="{{- . -}}"{{ end }}
|
{{ with $imageData.alt }}alt="{{- . -}}"{{ end }}
|
||||||
/>
|
/>
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
src="{{- .RelPermalink -}}"
|
src="{{- .RelPermalink -}}"
|
||||||
width="{{- .Width -}}"
|
width="{{- .Width -}}"
|
||||||
height="{{- .Height -}}"
|
height="{{- .Height -}}"
|
||||||
|
loading="lazy"
|
||||||
{{ with $imageData.title }}title="{{- . -}}"{{ end }}
|
{{ with $imageData.title }}title="{{- . -}}"{{ end }}
|
||||||
{{ with $imageData.alt }}alt="{{- . -}}"{{ end }}
|
{{ with $imageData.alt }}alt="{{- . -}}"{{ end }}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user