Merge pull request #2080 from pawelngei/medium-zoom-data-zoom-src

🐛 fix: Enable zooming to a higher resolution image using `srcset` and `medium-zoom`
This commit is contained in:
Nuno Coração authored and GitHub committed 2025-05-01 16:33:03 +01:00
commit 963da57589
2 files changed
+2

No files matched your search

@@ -32,6 +32,7 @@
{{ (.Resize "660x").RelPermalink }} 660w,
{{ (.Resize "1024x").RelPermalink }} 1024w,
{{ (.Resize "1320x").RelPermalink }} 2x"
data-zoom-src="{{ (.Resize "1320x").RelPermalink }}"
src="{{ (.Resize "660x").RelPermalink }}"
alt="{{ $altText }}"
/>
+1
View File
@@ -37,6 +37,7 @@
{{ (.Resize "1024x").RelPermalink }} 1024w,
{{ (.Resize "1320x").RelPermalink }} 2x"
src="{{ (.Resize "660x").RelPermalink }}"
data-zoom-src="{{ (.Resize "1320x").RelPermalink }}"
alt="{{ $altText }}"
/>
{{- end }}