🐛 fix: correct the attributes of img tag

This commit is contained in:
ZhenShuo Leo
2025-05-25 22:36:26 +08:00
parent 1d21656d5e
commit 4688d1e8c4

View File

@@ -27,13 +27,14 @@
<img
class="my-0 rounded-md"
loading="lazy"
decoding="async"
fetchpriority="low"
srcset="
{{ (.Resize "330x").RelPermalink }} 330w,
{{ (.Resize "660x").RelPermalink }} 660w,
{{ (.Resize "1024x").RelPermalink }} 1024w,
{{ (.Resize "1320x").RelPermalink }} 2x"
data-zoom-src="{{ (.Resize "1320x").RelPermalink }}"
src="{{ (.Resize "660x").RelPermalink }}"
{{ (.Resize "1280x").RelPermalink }} 1280w"
data-zoom-src="{{ .RelPermalink }}"
src="{{ .RelPermalink }}"
alt="{{ $altText }}"
/>
{{- end }}