-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
44 lines (43 loc) · 1.37 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
{{!< default}}
<div class="body-layout">
{{#if @blog.cover}}
<style media="screen">
.index-header{
background:url({{@blog.cover}});
background-repeat:no-repeat;
background-size: 100% 100%;
}
@media screen and (max-width:390px){
.index-header{
background: url({{@blog.cover}});
background-repeat:no-repeat;
background-position:center;
}
}
</style>
<div class="index-header">
<div class="index-header-wave"></div>
</div>
{{else}}
<div class="index-header" style="background:url(assets/images/ndex-header-default-bg.jpg);background-size:100% 100%;background-repeat:no-repeat;">
<div class="index-header-wave"></div>
</div>
{{/if}}
<div class="index-container">
{{#foreach posts}}
<div class="index-post-layout">
<article class="index-post-abstract">
<header>
<h2><a href="{{url}}">{{title}}</a></h2>
<time datetime="{{date format="DD MMMM YYYY"}}">{{date format="DD MMMM YYYY"}}</time>
</header>
<section>
{{content characters="150"}}
</section>
</article>
</div>
{{/foreach}}
{{pagination}}
</div>
{{> "footer"}}
</div>