-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
executable file
·72 lines (69 loc) · 2.72 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! The big featured header on the homepage, with the site logo and description }}
<main class="animated fadeIn teabag-content" role="main">
<div class="ui page grid segment">
{{#foreach posts}}
<div class="row">
<div class="column">
<article class="{{post_class}}">
<header class="{{post_header}} teabag-post-header">
<span class="teabag-post-meta">
<div class="teabag-area time">
<div class="ui red horizontal label">Published</div>
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}
</time>
</div>
<div class="teabag-area tag">
{{#if tags}}
<div class="ui purple horizontal label">Tags</div>
{{tags separator=" • "}}
{{/if}}
</div>
</span>
<h2 class="ui header"><a href="{{url}}">{{{title}}}</a></h2>
</header>
</article>
</div>
</div>
<div class="row">
<div class="teabag-content-img column">
{{content words="0"}}
</div>
</div>
<div class="computer tablet only row">
<div class="column">
<p>{{excerpt characters="600"}}…</p>
</div>
</div>
<div class="mobile only row">
<div class="column">
<p>{{excerpt characters="100"}}…</p>
</div>
</div>
<div class="computer only row">
<div class="center aligned column">
<div class="ui blue button teabag-readmore">
<a href="{{url}}">
<i class="coffee icon"></i>Read More
</a>
</div>
</div>
</div>
<div class="tablet mobile only row">
<div class="column">
<div class="fluid ui blue button teabag-readmore">
<a href="{{url}}">
<i class="coffee icon"></i>Read More
</a>
</div>
</div>
</div>
<div class="ui horizontal icon divider">
<i class="circular heart icon"></i>
</div>
{{/foreach}}
</div>
{{pagination}}
</main>