-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.hbs
62 lines (56 loc) · 2.49 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
{{!< 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 }}
<!--header parallax section start-->
<header>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
{{#if @blog.cover}}<img src="{{@blog.cover}}" alt="" />{{else}}{{/if}}
<div class="description{{#if @blog.cover}}{{else}} nomargin{{/if}}">
{{@blog.description}}
</div>
</div>
</div>
</div>
</header>
{{! The main content area on the homepage }}
<!--header parallax section end-->
<!--content container section start-->
<section class="content">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 text-center">
<div class="logo">
<img src="{{@blog.logo}}" alt="" />
{{@blog.title}}
</div>
{{#foreach posts}}
<!--post start-->
<div class="post">
<div class="date">{{date format="DD MMM"}}</div>
<h2><a href="{{url}}">{{{title}}}</a></h2>
<div class="subtitle">
{{#if tags}}{{tags}}{{/if}}
</div>
<p>
{{excerpt}}
</p>
<div class="extra">
<div class="author">
{{#if author.image}}<img src="{{author.image}}" alt="" />{{/if}}
<a href="{{author.website}}">{{author.name}}</a>
</div>
<div class="more">
<a href="{{url}}">Read More ></a>
</div>
</div>
</div>
<!--post end-->
{{/foreach}}
</div>
</div>
</div>
</section>
{{!! After all the posts, we have the previous/next pagination links }}