移除懒加载

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

@@ -20,12 +20,11 @@
<img src="{{ $Permalink }}"
{{ with $Srcset }}srcset="{{ . }}"{{ end }}
width="{{ $Width }}"
height="{{ $Height }}"
loading="lazy"
width="{{ $Width }}"
height="{{ $Height }}"
alt="Featured image of post {{ .Title }}" />
{{ else }}
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
<img src="{{ $image.permalink }}" alt="Featured image of post {{ .Title }}" />
{{ end }}
</a>
</div>

View File

@@ -21,7 +21,7 @@
{{ $permalink = .RelPermalink }}
{{ end }}
<div class="article-image">
<img src="{{ $permalink }}" loading="lazy"{{ with $link.alt }} alt="{{ . }}"{{ end }}>
<img src="{{ $permalink }}"{{ with $link.alt }} alt="{{ . }}"{{ end }}>
</div>
{{ end }}
</a>