-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
godo-template-featured.hbs
30 lines (27 loc) · 1.26 KB
/
godo-template-featured.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{!-- Layout --}}
{{!< default}}
{{!-- custom Styles For tag <body> --}}
{{#contentFor "special_body_class"}}{{#is "home"}}is-home{{/is}} is-frontpage{{/contentFor}}
{{!-- Featured Story --}}
{{#get "posts" filter="featured:true" limit="1" as |godo_featured_post| }}
{{#if godo_featured_post}} {{#foreach godo_featured_post}}{{> "story/story-featured"}} {{/foreach}}{{/if}}
{{/get}}
<div class="site-post feed-entry-content">
<div class="feed-entry-wrap u-maxWidth1100 container">
<div class="row">
{{#foreach posts visibility="all"}}
{{#has number="1"}}
<div class="col s12 m6 l12 ss1">{{> "story/story-grid" }}</div>
{{else has number="5, 6, 17, 18"}}
<div class="col s12 m6 ss2">{{> "story/story-grid" }}</div>
{{else has number="13, 16"}}
<div class="col s12 l7 ss3 u-marginBottom15">{{> "story/story-cover" }}</div>
{{else has number="14, 15"}}
<div class="col s12 l5 ss4 u-marginBottom15">{{> "story/story-cover" }}</div>
{{else}}
<div class="col s12 m6 l4">{{> "story/story-grid"}}</div>
{{/has}}
{{/foreach}}
</div>
</div>
</div>