Skip to content

Commit

Permalink
Fix ordering of stories on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
marineb committed Apr 12, 2017
1 parent d09c9da commit ca275fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{else}}
{{#stream-carousel streams=streams background=carouselBg as |stream slide|}}
{{#slide.header}}{{stream.name}}{{/slide.header}}

{{#if (and stream.currentComposer.name stream.currentPiece)}}
{{#slide.body}}
{{stream.currentComposer.name}}
Expand All @@ -25,7 +25,7 @@
{{else}}
{{slide.body}}
{{/if}}

{{#slide.footer}}
{{#listen-button
audio=audio
Expand All @@ -35,26 +35,26 @@
itemTitle=stream.name}}
Listen Live
{{/listen-button}}

{{#if (and stream.currentComposer.name stream.currentPiece)}}
{{#link-to 'playlist' stream.slug (query-params scheduleStation=stream.slug) class="text--small text--white"}}
Recently played »
{{/link-to}}
{{/if}}
{{/slide.footer}}

{{/stream-carousel}}
{{/if}}

<section class="home__stories">
{{#nypr-brick-layout as |layout|}}

{{layout.blowout audio=audio items=(slice model.featuredItems 0 3)}}
{{layout.blowout audio=audio items=(slice model.featuredItems 3 6)}}
{{layout.cards audio=audio items=(slice model.featuredItems 6)}}

{{layout.cards audio=audio items=(slice model.featuredItems 3 5)}}

{{layout.blowout audio=audio items=(slice model.featuredItems 5 8)}}

{{/nypr-brick-layout}}
{{nypr-brick-grid audio=audio items=model.otherItems}}
</section>
Expand Down

0 comments on commit ca275fc

Please sign in to comment.