forked from kagaim/Chopstick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
75 lines (64 loc) · 1.82 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
64
65
66
67
68
69
70
71
72
73
74
75
{{!< default}}
<section id="main-body">
<div class="container">
<div class="row">
<div class="col-md-8">
<article class="{{post_class}}">
{{#post}}
<header class="post-header">
<h2>{{{title}}}</h2>
<div class="meta-info">
{{#author}}
<span class="author">
<i class="fa fa-user"></i>
<a href="{{url}}">{{name}}</a>
</span>
{{/author}}
<span class="date">
<i class="fa fa-clock-o"></i>
{{date format="MMM DD, YYYY"}}
</span>
<span class="comment">
<i class="fa fa-comment"></i>
<a href="{{url}}#disqus_thread">0 Comments</a>
</span>
</div>
{{#if image}}
<img class="featured-image" src="{{image}}" alt="{{{title}}}" title="{{{title}}}" />
{{else}}
<img class="featured-image" src="{{asset "images/no-image.jpg"}}" />
{{/if}}
</header>
<section class="post-content">
{{content}}
</section>
<footer class="post-footer">
{{#if "tags"}}
<section class="tags pull-left">
<i class="fa fa-tags"></i> {{tags separator=" | "}}
</section>
{{/if}}
{{> share}}
<div class="clearfix"></div>
{{> post-author}}
<div class="clearfix"></div>
<nav class="pagination">
<div>
{{#next_post}}
<a class="newer-posts-single" href="{{url}}" title="{{title}}">Next post →</a>
{{/next_post}}
{{#prev_post}}
<a class="older-posts-single" href="{{url}}" title="{{title}}">← Previous post</a>
{{/prev_post}}
</div>
</nav>
<div class="clearfix"></div>
{{> comments}}
</footer>
{{/post}}
</article>
</div>
{{> sidebar}}
</div>
</div>
</section>