-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.hbs
executable file
·62 lines (48 loc) · 1.95 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 class="site-head" {{#if @blog.cover_image}}style="background-image: url({{@blog.cover_image}})"{{/if}}>
<div class="panel-cover-overlay"></div>
<div class="vertical">
<div class="site-head-content inner">
{{#if @blog.logo}}
<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>
{{else}}
<h1 class="blog-title">{{@blog.title}}</h1>
{{/if}}
<h2 class="blog-description">{{@blog.description}}</h2>
{{! Social Links }}
{{> social }}
<div class="page-scroll">
<a href="#top" class="btn btn-circle">
<i class="fa fa-angle-down fa-2x animated"></i>
</a>
</div>
</div>
</div>
</header>
<div id="top" class="top-ornament"></div>
{{! The main content area on the homepage }}
<main class="content" role="main">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="MMMM Do, YYYY"}}</time> {{tags prefix="on "}}</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<section class="post-excerpt">
<p>{{excerpt}}…</p>
</section>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
{{pagination}}
</div>
</div>
</div>
</main>