diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html index c4ee41538..3ae9dfd1c 100644 --- a/layouts/partials/plugin/image.html +++ b/layouts/partials/plugin/image.html @@ -10,6 +10,8 @@ {{- $height = $height | default .Height -}} {{- end -}} {{- end -}} +{{- /* lazysize.js causes inaccurate positioning for anchor links, don't activate it if no alternatives */ -}} +{{- $responsive := ne (or .SrcSmall .SrcLarge) nil -}} {{- $style := "" -}} {{- with $width -}} @@ -36,11 +38,15 @@ {{- if .Linked -}} {{ $alt }} {{- else -}}