Commit d3f9441
committed
feat(image): add 240w candidate and per-layout sizes for home cards
Reduce over-fetch for home cards while retaining readability/clarity.
- Append 240 to _cf_widths_str → finer low-end step in srcset for small screens.
- Add conditional sizes for page.layout == 'home' (post cards):
- sizes="(min-width: 1200px) 22vw, (min-width: 850px) 25vw, (min-width: 770px) 37vw, 92vw"
- Keep default in-post sizes elsewhere:
- sizes="(min-width: 1400px) 800px, (min-width: 850px) 720px, 92vw"1 parent 22fac87 commit d3f9441
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
0 commit comments