forked from halo-dev/halo-theme-anatole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsheet.ftl
51 lines (51 loc) · 2.96 KB
/
sheet.ftl
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
<#include "module/macro.ftl">
<@head title="${sheet.title!} - ${blog_title!}"/>
<#include "module/sidebar.ftl">
<div class="main">
<#include "module/page-top.ftl">
<div class="autopagerize_page_element">
<div class="content">
<div class="post-page">
<div class="post animated fadeInDown">
<div class="post-title">
<h3>
<a>${sheet.title!}</a>
</h3>
</div>
<div class="post-content">
${sheet.formatContent!}
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<i class="fa fa-sun-o"></i>
<span class="date">${sheet.createTime?string("yyyy-MM-dd")}</span>
<i class="fa fa-comment-o"></i>
<a href="${sheet.fullPath!}#comment_widget">Comments</a>
</div>
</div>
</div>
</div>
<div class="share" style="display: inline-flex">
<div class="evernote">
<a href="javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();"
ref="nofollow" target="_blank" class="fa fa-bookmark"></a>
</div>
<div class="weibo">
<a href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://service.weibo.com/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"
class="fa fa-weibo"></a>
</div>
<div class="twitter">
<a href="http://twitter.com/home?status=${sheet.fullPath!},${blog_title!},${sheet.title!};"
class="fa fa-twitter"></a>
</div>
</div>
<div id="comment_widget" style="margin: 30px;">
<#include "module/comment.ftl">
<@comment post=sheet type="sheet" />
</div>
</div>
</div>
</div>
</div>
<@footer></@footer>