移除懒加载

This commit is contained in:
FlintyLemming
2026-01-19 12:07:06 +08:00
parent 9d657b0e5a
commit 4a7470316f
9 changed files with 20 additions and 26 deletions

View File

@@ -29,7 +29,6 @@
{{ with $Width }}width="{{ . }}"{{ end }}
{{ with $Height }}height="{{ . }}"{{ end }}
{{ with $Srcset }}srcset="{{ . }}"{{ end }}
loading="lazy"
{{ with $alt }}
alt="{{ . }}"
{{ end }}

View File

@@ -32,12 +32,11 @@
{{- $Height = $thumbnail.Height -}}
{{- end -}}
<img src="{{ $Permalink }}"
<img src="{{ $Permalink }}"
width="{{ $Width }}"
height="{{ $Height }}"
loading="lazy">
height="{{ $Height }}">
{{ else }}
<img src="{{ $image.permalink }}" loading="lazy" />
<img src="{{ $image.permalink }}" />
{{ end }}
</div>
{{ end }}