forked from Kikobeats/uno-zen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
executable file
·39 lines (29 loc) · 1.2 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
{{!< default}}
{{#post}}
<article class="{{post_class}}">
<header>
<div class="post meta">
<time datetime="{{date format="YYYY-MM-DDTHH:MM"}}">{{date format="DD MMM YYYY"}}</time>
<span class="post tags">{{tags prefix="in " separator=" "}}</span>
{{!> post-author}}
<span class="post reading-time"> ~ <span></span> read.</span>
</div>
<a title="Tweet '{{title}}'" href="https://twitter.com/intent/tweet?text={{encode title}}{{encode ' »'}}&hashtags={{tags separator="," autolink="false"}}&url={{url absolute="true"}}">
{{#if image}}<img id="post-image" src="{{image}}" alt="{{title}}">{{/if}}
<h1 class="icon-reverse icon-social-twitter-post" id="post-title">{{title}}</h1>
</a>
</header>
<div id="post-content" class="{{post_class}}">
{{content}}
</div>
<div class="post related">
{{#prev_post}}
<a rel="prev" id="prev-btn" class="btn small square" href="{{url}}">← {{title}}</a>
{{/prev_post}}
{{#next_post}}
<a rel="next" id="next-btn" class="btn small square" href="{{url}}">{{title}} →</a>
{{/next_post}}
</div>
{{> comments}}
</article>
{{/post}}