This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.hbs
executable file
·62 lines (58 loc) · 2.3 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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#post}}
<div id="single" data-id="{{id}}">
<div id="top">
<div class="bar"></div>
<a class="image-icon" href="javascript:history.back()"></a>
<div title="播放/暂停" data-id="{{id}}" class="icon-play"></div>
<h3 class="subtitle">{{title}}</h3>
<div class="social">
<div class="like-icon">
<a href="javascript:;" class="likeThis" id="like-{{id}}"><span class="icon-like"></span><span class="count likeNum">0</span>
</a>
</div>
<div>
<div class="share">
<a title="获取二维码" class="icon-wechat" href="javascript:;"></a>
</div>
<div id="qr"></div>
</div>
{{#if author.twitter}}
<div class="twitter-icon">
<a href="{{twitter_url author.twitter}}">{{twitter}}</a>
</div>
{{/if}}
</div>
<div class="scrollbar"></div>
</div>
<div class="section" style="left: 0;">
<div class="images"></div>
<div class="article">
<div>
<h1 class="title">{{title}}</h1>
<div class="stuff">
<span>{{date format="D MMMM YYYY"}} </span>
<span>阅读 <span id="readNum">0</span></span>
<span>字数 <span id="wordNum">0</span></span>
<span>
喜欢
<a href="javascript:;" class="likeThis" id="like-{{id}}">
<span class="icon-like"></span>
<span class="count likeNum">0</span>
</a>
</span>
</div>
<div class="content">
{{content}}
</div>
<div class="comment-wrap" data-title="{{title}}" data-url="{{url}}" data-identifier="ghost-{{comment_id}}">
<div id="pager"><a href="#" class="loadDisqus">加载 Disqus</a></div>
<div id="disqus_thread"></div>
</div>
</div>
</div>
</div>
</div>
{{/post}}