Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #411 from brandonbk/is-logo-sec-feed
Browse files Browse the repository at this point in the history
Add isLogo support to section-feed-content block
  • Loading branch information
brandonbk authored Aug 21, 2022
2 parents 5bb4167 + 7f42dae commit 59ebc84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ $ const blockName = "section-feed-content-node";
<if(displayImage)>
<marko-web-element block-name=blockName name="image-wrapper">
<if(primaryImage.src)>
$ const src = buildImgixUrl(primaryImage.src, { w: 250, h: 167, fit: "crop" });
$ const src = buildImgixUrl(primaryImage.src, { w: 250, h: 167, fit: "crop" }, null, get(primaryImage, 'isLogo'));
$ const srcset = [src, `${buildImgixUrl(src, { dpr: 2 })} 2x`];

$ const srcMobile = buildImgixUrl(primaryImage.src, { w: 112, h: 112, fit: "crop" });
$ const srcMobile = buildImgixUrl(primaryImage.src, { w: 112, h: 112, fit: "crop" }, null, get(primaryImage, 'isLogo'));
$ const srcsetMobile = [srcMobile, `${buildImgixUrl(srcMobile, { dpr: 2 })} 2x`];

<marko-web-picture>
Expand Down

0 comments on commit 59ebc84

Please sign in to comment.