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 #1012 from parameter1/mindful-banner-elements
Browse files Browse the repository at this point in the history
Add mindful elements to banners
  • Loading branch information
brandonbk authored Nov 15, 2024
2 parents 2c52060 + 1d7cd84 commit d30f86b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/marko-newsletters-email-x/components/render.marko
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getAsObject, get } from "@parameter1/base-cms-object-path";

$ const response = getAsObject(input, "response");
$ const { ad } = response.data;
$ const { ad, elements } = response.data;
$ const imageSrc = get(input, "response.imageSrc");
$ const adImageSrc = get(ad, "image.src") || imageSrc;

Expand All @@ -28,6 +28,7 @@ $ const linkAttrs = {
...(getAsObject(input, "link.attrs")),
"data-mindful-tenant": mindfulTenant,
"data-mindful-creative-id": mindfulCreativeId,
...elements.a,
},
};

Expand Down

0 comments on commit d30f86b

Please sign in to comment.