Commit 07bfa41 1 parent 0d5c2e0 commit 07bfa41 Copy full SHA for 07bfa41
File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
{{ #is " home" }}
11
11
{{ #if @site.cover_image }}
12
+ {{ #match @custom.header_section_layout " Large background" }}
12
13
<link rel =" preload" as =" image" href =" {{ @site.cover_image }} " >
14
+ {{ else match @custom.header_section_layout "Side by side"}}
15
+ <link rel =" preload" as =" image" href =" {{ img_url @site.cover_image size =" m" }} " >
16
+ {{ /match }}
17
+
13
18
{{ /if }}
14
19
{{ /is }}
15
20
46
51
<a class =" gh-head-logo" href =" {{ @site.url }} " >
47
52
{{ #if @site.logo }}
48
53
<img srcset =" {{ img_url @site.logo size =" s" }} 300w,
49
- {{ img_url @site.logo size =" m" }} 600w "
50
- sizes =" (max-width: 600px) 50vw, 40vw "
54
+ {{ img_url @site.logo size =" m" }} 720w "
55
+ sizes =" 90vw "
51
56
src =" {{ img_url @site.logo size =" s" }} " alt =" {{ @site.title }} "
52
57
>
53
58
{{ else }}
Original file line number Diff line number Diff line change 18
18
{{ #if @site.cover_image }}
19
19
<img class =" gh-about-image"
20
20
srcset =" {{ img_url @site.cover_image size =" s" }} 300w,
21
- {{ img_url @site.cover_image size =" m" }} 720w,
22
- {{ img_url @site.cover_image size =" l" }} 960w"
23
- sizes =" (max-width: 840px) 100vw, 50vw"
21
+ {{ img_url @site.cover_image size =" m" }} 720w"
22
+ sizes =" (max-width: 720px) 100vw, 50vw"
24
23
src =" {{ @site.cover_image }} " alt =" {{ @site.title }} " >
25
24
{{ /if }}
26
25
{{ /match }}
Original file line number Diff line number Diff line change 8
8
{{ #match @custom.post_feed_layout " Parallax" }} class =" jarallax-img" {{ /match }}
9
9
srcset =" {{ img_url feature_image size =" s" }} 300w,
10
10
{{ img_url feature_image size =" m" }} 720w,
11
- {{ img_url feature_image size =" l" }} 960w,
11
+ {{ img_url feature_image size =" l" }} 960w
12
+ {{ #match @custom.post_feed_layout " =" " Parallax" }} ,
12
13
{{ img_url feature_image size =" xl" }} 1200w,
13
14
{{ img_url feature_image size =" xxl" }} 2000w"
14
- sizes =" (max-width: 1200px) 100vw, 1200px"
15
+ sizes =" (max-width: 1440px) 100vw, 1440px"
16
+ {{ else }}
17
+ sizes =" (max-width: 991px) 100vw, 50vw"
18
+ {{ /match }}
15
19
src =" {{ img_url feature_image size =" m" }} "
16
20
alt =" {{ #if feature_image_alt }} {{ feature_image_alt }} {{ else }} {{ title }} {{ /if }} "
17
21
>
You can’t perform that action at this time.
0 commit comments