瀏覽代碼

Bump the priority of the first displayed image

master
David Larlet 2 年之前
父節點
當前提交
eb7dc06813
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      theme/media.html.j2

+ 3
- 0
theme/media.html.j2 查看文件

@@ -21,6 +21,7 @@
"
sizes="min(100vw, calc(100vh * {{ photo.width }} / {{ photo.height }}))"
type="image/webp">
<!-- The <img> tag is a fallback image (required in the <picture> tag) -->
<img
src="{{ photo.gallery_slug }}/jpg/{{ photo.name }}_{{ sizes.0.0 }}x{{ sizes.0.1 }}.jpg"
width="{{ photo.width }}" height="{{ photo.height }}"
@@ -30,6 +31,8 @@
{%- endfor -%}
"
sizes="min(100vw, calc(100vh * {{ photo.width }} / {{ photo.height }}))"
fetchpriority="high"
decoding="sync"
alt="TODO">
</picture>
</div>

Loading…
取消
儲存