-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.hbs
40 lines (31 loc) · 1.31 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
{{!< default}}
<header class="blog-header" {{#if @blog.cover_image}}style="background-image: url({{@blog.cover_image}})"{{/if}}>
{{!-- <div class="vertical"><h1>{{@blog.description}}</h1></div> --}}
</header>
<div class="wrap">
<section class="blog-content">
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<section class="post-meta">
<img class="author-img" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />
<span class="author-name">{{author}}</span>
•
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="D MMM YYYY"}}</time>
<span class="tags">{{tags prefix="• " separator=" "}}</span>
</section>
</header>
<section class="post-excerpt">
<p>{{excerpt words="55"}}…</p>
</section>
<footer class="more-links">
<a class="read-more button-save" href="{{url}}">Read More</a>
{{!> share/post}}
</footer>
</article>
{{/foreach}}
{{pagination}}
</section>
{{> sidebar}}
</div>