-
-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathindex.hbs
50 lines (40 loc) · 1.4 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{!-- Layouts --}}
{{!< default}}
{{#contentFor "mapache_class_body"}}is-home{{/contentFor}}
{{#is "paged"}}
{{!-- lates post - partials/loop.hbs --}}
{{> "loop"}}
{{else}}
{{!-- Home Top Section --}}
<div class="h-cover home-banner mx-auto mb-10 p-2 grid gap-2 lg:grid-cols-5">
{{#foreach posts visibility="all" from="1" to="3"}}
{{!-- Home Top Section -> 3 first Articles - partials/story/story-cover.hbs --}}
{{> "story/story-cover" }}
{{/foreach}}
</div>
{{!-- Post Grid - 8 lates article --}}
<div class="container mx-auto mb-16">
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-4">
{{!-- Story Grid - partiasl/story/story-grid.hbs --}}
{{#foreach posts visibility="all" from="4" to="11"}}
{{> "story/story-grid" classTitle='text-xl'}}
{{/foreach}}
</div>
</div>
{{!-- Post List - 4 latest articles --}}
<div class="container mx-auto my-10">
<div class="flex flex-col flex-wrap lg:flex-row">
<div class="flex-1">
<div class="js-post-feed">
{{!-- Story List - partials/story/story-list.hbs --}}
{{#foreach posts visibility="all" from="12" to="16"}}
{{> "story/story-list"}}
{{/foreach}}
</div>
{{pagination}}
</div>
{{!-- Sidebar - partials/sidebar.hbs --}}
{{> "sidebar"}}
</div>
</div>
{{/is}}