-
Notifications
You must be signed in to change notification settings - Fork 118
/
index.hbs
60 lines (44 loc) · 1.85 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
{{!< 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 id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="vertical">
<div id="site-head-content" class="inner">
{{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
<h2 class="blog-description">{{@blog.description}}</h2>
<a class='btn first'>Take a tour</a>
<a class='btn last'>Cut to the chase</a><br>
<i id='header-arrow' class="fa fa-angle-down"></i>
</div>
</div>
</header>
{{! The main content area on the homepage }}
<main class="content" role="main">
<div class='fixed-nav'>
</div>
{{! Each post will be output using this markup }}
{{#foreach posts}}
<div class='post-holder'>
{{#if @first}}
<article class="{{post_class}} first">
{{else}}
{{#if @last}}
<article class="{{post_class}} last">
{{else}}
<article class="{{post_class}}">
{{/if}}
{{/if}}
<header class="post-header">
<h2 class="post-title">{{{title}}}</h2>
</header>
<section class="post-content">
<p>{{content characters="9999999999999"}}</p>
</section>
</article>
<div class='post-after'></div>
</div>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
</main>