-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
executable file
·65 lines (49 loc) · 2.86 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="col-lg-12 blog-post {{post_class}} {{#if @first}}first{{/if}} {{#if @even}}even{{/if}}">
{{! Unfortunately with the skrollr library we can't have strics separation of content and style. The styles below are used in the parallax animation of the main page }}
<div class="background-image"
data-top-center="
-webkit-transform : translate3d(0px, 0px, 0px);
-webkit-backface-visibility : hidden;
-webkit-perspective : 1000;
-moz-transform : translate3d(0px, 0px, 0px);
-moz-backface-visibility : hidden;
-moz-perspective : 1000;
transform : translate3d(0px, 0px, 0px);
backface-visibility : hidden;
perspective : 1000;"
data-bottom-center="
-webkit-transform : translate3d(0px, -300px, 0px);
-moz-transform : translate3d(0px, -300px, 0px);
transform : translate3d(0px, -300px, 0px);
">
{{! Here we grab just one word from the post. This one word will include any html tags that came before it, which is where our featured image resides. That way there's no need to load the whole post to parse it. }}
<div class="one-word">{{content words=1}}</div>
</div>
<div class="darkened-bg"></div>
<div class="container blog-post-text">
<a class="title" href="{{url}}"><h1>{{{title}}}</h1></a>
<h5>
<i class="fa fa-clock-o"></i> Published {{date published_at timeago="true"}} by {{author.name}}
<div class="tags">{{{tags separator=", " prefix="<i class='fa fa-tags'></i> "}}}</div>
</h5>
<p>
{{excerpt characters="350"}} …
</p>
<p> <a class="btn btn-default" href="{{url}}">Read more <i class="fa fa-angle-right"></i></a> </p>
</div>
</article>
{{/foreach}}
{{! We include the footer here as it changes depending on which page it's in }}
<footer class="container">
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
<span class="footer-text">
Copyright {{{@blog.title}}} © {{date format="YYYY"}} • All rights reserved.<br />
Theme designed by <a href="http://themeforest.net/user/i11ume">i11ume</a><br />
Proudly published with Ghost</span>
</footer>