File tree 3 files changed +16
-0
lines changed
websites/code/studygolang
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,19 @@ $(function(){
106
106
}
107
107
}
108
108
109
+ emojify . setConfig ( {
110
+ // emojify_tag_type : 'span',
111
+ only_crawl_id : null ,
112
+ img_dir : 'http://www.emoji-cheat-sheet.com/graphics/emojis' ,
113
+ ignored_tags : { //忽略以下几种标签内的emoji识别
114
+ 'SCRIPT' : 1 ,
115
+ 'TEXTAREA' : 1 ,
116
+ 'A' : 1 ,
117
+ 'PRE' : 1 ,
118
+ 'CODE' : 1
119
+ }
120
+ } ) ;
121
+
109
122
// 侧边栏——最新评论
110
123
var commentRecent = function ( data ) {
111
124
if ( data . ok ) {
@@ -165,6 +178,7 @@ $(function(){
165
178
'</li>' ;
166
179
}
167
180
$ ( '.sb-content .cmt-list ul' ) . html ( content ) ;
181
+ emojify . run ( $ ( '.sb-content .cmt-list ul li .w-comment' ) . get ( 0 ) ) ;
168
182
}
169
183
}
170
184
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ <h1>{{.article.Title}}</h1>
57
57
<!-- content END -->
58
58
< div class ="row orig-info ">
59
59
< p > 本文来自:< a href ="/wr?u=http://{{.article.Domain}} " target ="_blank " title ="{{.article.Name}} "> {{.article.Name}}</ a > </ p >
60
+ < p > 感谢作者:{{noescape .article.Author}}</ p >
60
61
< p > 查看原文:< a href ="/wr?u={{.article.Url}} " target ="_blank " title ="{{.article.Title}} "> {{.article.Title}}</ a > </ p >
61
62
</ div >
62
63
< div class ="active row ">
Original file line number Diff line number Diff line change @@ -191,5 +191,6 @@ <h5>第三方账号登录</h5>
191
191
</ script >
192
192
< script src ="/static/js/common.js "> </ script >
193
193
{{template "js" .}}
194
+ < script type ="text/javascript " src ="/static/js/libs/emojify.min.js "> </ script >
194
195
< script src ="/static/js/sidebar.js "> </ script >
195
196
</ html >
You can’t perform that action at this time.
0 commit comments