File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -610,6 +610,8 @@ changyan:
610610 enable : false
611611 appid :
612612 appkey :
613+ # Show comments count
614+ count : true
613615
614616# LiveRe comments system
615617# You can get your uid from https://livere.com/insight/myCode (General web site)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ hexo.extend.filter.register('theme_inject', injects => {
1919// Add post_meta
2020hexo . extend . filter . register ( 'theme_inject' , injects => {
2121 const config = hexo . theme . config . changyan ;
22- if ( ! config . enable || ! config . appid || ! config . appkey ) return ;
22+ if ( ! config . enable || ! config . count || ! config . appid || ! config . appkey ) return ;
2323
2424 injects . postMeta . raw ( 'changyan' , `
2525 {% if post.comments %}
You can’t perform that action at this time.
0 commit comments