Skip to content

Instantly share code, notes, and snippets.

@andresgallo
Created April 28, 2023 15:18
Show Gist options
  • Save andresgallo/d55b88ca0bb6a691d9cd348abe29fff4 to your computer and use it in GitHub Desktop.
Save andresgallo/d55b88ca0bb6a691d9cd348abe29fff4 to your computer and use it in GitHub Desktop.
{{#if items}}
<bsp-listcarousel class="PageListCarouselA BlogCarousel" data-module{{include "includes/PageList-attributes.hbs" this}}>
{{include "includes/KW-PageListCarousel-header.hbs" this}}
<div class="PageList-items">
{{#each items}}
<div class="PageList-items-item BlogItem">
{{#eq this._template "/page/promo/PagePromo.hbs"}}
{{#set
lazyLoad=false
imageSize=(eq ../listColumns23456 "2" then="large-16x9" otherwise=(get "imageSize"))
}}
{{include "/page/promo/PagePromo.hbs" this imagePositionVertical="top" media=(not ../hideImages then=media otherwise=null)}}
{{/set}}
{{else}}
{{render this}}
{{/eq}}
</div>
{{/each}}
</div>
{{include "includes/KW-PageListCarousel-footer.hbs" this}}
</bsp-listcarousel>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment