forked from zutrinken/bleak
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.hbs
More file actions
executable file
·143 lines (126 loc) · 5.01 KB
/
post.hbs
File metadata and controls
executable file
·143 lines (126 loc) · 5.01 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{{!< default}}
{{#post}}
<main class="content" role="main">
<article class="{{post_class}}">
<div class="inner">
<div id="push">
<header class="post-header">
<span class="post-meta">
<span class="post-meta-author">{{author}}</span> | <span class="post-meta-date">{{date format="DD MMM YYYY"}} <span class="post-meta-reading-time">| <span class="estimated-reading-time"></span> (<span class="word-count"></span> words)</span></span>
</span>
<div class="clear"></div>
<h1 class="post-title">{{{title}}}</h1>
</header>
<section class="post-content">
{{content}}
</section>
<footer class="post-footer">
<div class="post-tags">
{{tags separator=" "}}
</div>
<div class="post-share">
{{!--<a class="icon-twitter" href="https://twitter.com/share?text={{title}}&url={{url absolute="true"}}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<span>Twitter</span>
</a>
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<span>Facebook</span>
</a>
<a class="icon-gplus" href="https://plus.google.com/share?url={{url absolute="true"}}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
<span>Google+</span>
</a>--}}
{{! 使用百度分享(http://share.baidu.com/)}}
<div class="bdsharebuttonbox" data-tag="share_1">
<a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
<a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
</div>
<script>
window._bd_share_config={
"common":{
"bdSnsKey":{},
"bdText":"",
"bdMini":"2",
"bdMiniList":["qzone","douban","sqq","youdao","linkedin","evernotecn"],
"bdPic":"",
"bdStyle":"2",
"bdSize":"32"
},
"share":{}
};
with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>
{{! 百度分享代码结束}}
</div>
</footer>
{{#author}}
<aside class="post-author">
{{#if image}}
<figure class="post-author-avatar">
<img src="{{image}}" alt="{{name}}" />
</figure>
{{/if}}
<div class="post-author-bio">
<h4 class="post-author-name"><a href="{{url}}">{{name}}</a></h4>
<p class="post-author-meta">
{{#if location}}
<span class="post-author-meta-location"><i class="icon-location"></i> {{location}}</span>
{{/if}}
{{#if website}}
<span class="post-author-meta-website"><i class="icon-link"></i> <a href="{{website}}">Website</a></span>
{{/if}}
{{#if twitter}}
<span class="post-author-meta-twitter"><i class="icon-twitter"></i> <a target="_blank" href="https://twitter.com/{{twitter}}">Twitter</a></span>
{{/if}}
{{#if facebook}}
<span class="post-author-meta-facebook"><i class="icon-facebook"></i> <a target="_blank" href="https://facebook.com/{{facebook}}">Facebook</a></span>
{{/if}}
</p>
{{#if bio}}
<p class="post-author-about">{{{bio}}}</p>
{{/if}}
</div>
<div class="clear"></div>
</aside>
{{/author}}
{{#if @labs.subscribers}}
<aside class="post-subscribe">
<p>Get the latest posts delivered right to your inbox.</p>
{{subscribe_form placeholder="Your email address" form_class="post-subscribe-form" input_class="post-subscribe-input" button_class="post-subscribe-button"}}
</aside>
{{/if}}
<aside class="post-comments">
<div id="disqus_thread"></div>
</aside>
</div>
<nav class="post-nav">
{{#next_post}}
<a class="post-nav-item post-nav-next" href="{{url absolute="true"}}">
<section class="post-nav-teaser">
<span class="post-nav-icon"><i class="icon-arrow-left"></i></span>
<span class="post-nav-info">
<h4 class="post-nav-title">{{title}}</h4>
<p class="post-nav-excerpt">{{excerpt words="12"}}…</p>
</span>
</section>
</a>
{{/next_post}}
{{#prev_post}}
<a class="post-nav-item post-nav-prev" href="{{url absolute="true"}}">
<section class="post-nav-teaser">
<span class="post-nav-icon"><i class="icon-arrow-right"></i></span>
<span class="post-nav-info">
<h4 class="post-nav-title">{{title}}</h4>
<p class="post-nav-excerpt">{{excerpt words="12"}}…</p>
</span>
</section>
</a>
{{/prev_post}}
<div class="clear"></div>
</nav>
{{/post}}
{{!--评论模块--}}
{{> "comment"}}
</div>
</article>
</main>