forked from zombeats/bloggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
63 lines (45 loc) · 1.84 KB
/
post.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
{{!< default}}
<div class="wrap {{post_class}}">
<section class="blog-content">
<article>
{{#post}}
{{> post-header}}
<a class="post-meta" href="{{@blog.url}}">← Back to the front page</a>
<h1 class="post-title">{{{title}}}</h1>
<section class="post-meta">
<img class="author-img" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />
<span class="author-name">{{author}}</span>
<span class="prefix-date">on the</span>
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="Do of MMMM YYYY"}}</time>
<span class="tags">{{tags prefix="• " separator=" "}}</span>
</section>
{{> post-content}}
<footer class="post-footer">
{{!> share }}
<section class="author">
<img class="author-img" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />
<div class="author-meta">
<h4>{{author.name}}</h4>
<p>{{{author.bio}}} <a href="{{author.website}}">{{author.website}}</a></p>
</div>
</section>
<section class="read-next">
{{#next_post}}
<a class="read-next-story {{#if feature_image}}" style="background-image: url({{img_url feature_image}}){{else}}no-cover{{/if}}" href="{{url}}">
<section class="post">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}…</p>
</section>
</a>
{{/next_post}}
</section>
<a class="button-add large wide" data-toggle="modal" data-target="#blogsubscribe">Subscribe to Weekly Posts</a>
</footer>
<section class="comments">
{{> comments}}
</section>
{{/post}}
</article>
</section>
{{> sidebar}}
</div>