forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
executable file
·54 lines (50 loc) · 1.19 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
51
52
53
54
{{!< default}}
<div class="container wrapper">
{{!-- Last Post --}}
{{#foreach posts to="1"}}
<div class="grid">
<div class="col-xs">
{{> post-card class="post-card--latest" lazy="false"}}
</div>
</div>
{{/foreach}}
{{!-- Latest Posts --}}
<section class="main-content">
<div class="grid">
<div class="col-xs-12 col-md-8">
{{#foreach posts from="2"}}
{{#if @even}}
{{> post-card}}
{{else}}
{{> post-card class="reverse"}}
{{/if}}
{{/foreach}}
</div>
<div class="col-xs-12 col-md-4">
{{> sidebar}}
</div>
</div>
</section>
{{!-- More posts --}}
<div class="more-posts">
<div class="grid">
<div class="col-xs-12 more-posts-wrapper">
</div>
<div class="col-xs-12 center-xs">
<button id="load-more-btn" class="btn btn__large btn__wide" onClick="loadMorePosts();">{{t "Load more posts"}}</button>
</div>
</div>
</div>
{{!-- Top tags --}}
<section class="top-tags">
<div class="grid">
{{#get "tags" limit="4" include="count.posts" order="count.posts desc"}}
{{#foreach tags}}
<div class="col-xs-12 col-sm-6 col-md-3">
{{>tag-card}}
</div>
{{/foreach}}
{{/get}}
</div>
</section>
</div>