Skip to content

Commit

Permalink
Merge pull request #22 from jwade1327/insider
Browse files Browse the repository at this point in the history
Add additional ad slot to insider
  • Loading branch information
jwade1327 authored Jun 19, 2023
2 parents 01e8e04 + 5049844 commit d9e623c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
35 changes: 32 additions & 3 deletions packages/common/components/layouts/insider.marko
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,21 @@ $ const nativeX = config.getAsObject("nativeX");
limit=1
/>

<!-- Content list block -->
<common-content-list-block
date=date
section-name="Main"
newsletter=newsletter
with-image=false
with-section=true
limit=1
skip=0
/>

<!-- Ad Slot 1 -->
<common-ad-wrapper-block
newsletter=newsletter
promotion-component="advertisement-block"
ad-unit=emailX.getAdUnit({ name: 'ad-slot-1', alias: newsletter.alias })
placement-id=get(nativeX, `placements.${newsletter.alias}.slot-1`)
date=date
/>
Expand All @@ -56,8 +66,27 @@ $ const nativeX = config.getAsObject("nativeX");
newsletter=newsletter
with-image=false
with-section=true
limit=10
skip=0
limit=3
skip=1
/>

<!-- Ad Slot 2 -->
<common-ad-wrapper-block
newsletter=newsletter
promotion-component="emailx-block"
ad-unit=emailX.getAdUnit({ name: 'ad-slot-1', alias: newsletter.alias })
date=date
/>

<!-- Content list block -->
<common-content-list-block
date=date
section-name="Main"
newsletter=newsletter
with-image=false
with-section=true
limit=5
skip=4
/>

</@body>
Expand Down
2 changes: 2 additions & 0 deletions tenants/all/config/native-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
},
'labpulse-community-insider': {
community: '6406ac7a93fb8e0001c3abf3',
'slot-1': '64904c499f8e110001498812',
},
'labpulse-breaking-news': {
'slot-1': '6406aca393fb8e0001c3ac2a',
Expand All @@ -16,6 +17,7 @@ module.exports = {
},
'drb-community-insider': {
community: '6406acf593fb8e0001c3ac7c',
'slot-1': '64904c3261871f00013e0229',
},
'drb-breaking-news': {
'slot-1': '6406ad19e78b060001976ca1',
Expand Down

0 comments on commit d9e623c

Please sign in to comment.