ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 336 forks source link

建议支持“畅言” #103

Closed zxz054321 closed 4 years ago

zxz054321 commented 8 years ago

在国内 畅言 还是挺好用的

cow5910878 commented 8 years ago

这个可以增加多说吗?

ppoffice commented 8 years ago

@cow5910878 已经支持多说了 https://github.com/ppoffice/hexo-theme-hueman/wiki/Comment#duoshuo

tinyvane commented 7 years ago

我自己修改了代码,已经可以支持暢言,但是我想请问楼主,那个阅读量是如何获取到的?我没有发现有相关的js负责更新每个页面角落上的阅读量,请问是怎么做到的?我在hexo中也没有发现相关的js

ppoffice commented 7 years ago

@tinyvane 本主题没有阅读量插件

tinyvane commented 7 years ago

@ppoffice 抱歉,笔误,是评论量

ppoffice commented 7 years ago

@tinyvane 其他评论插件的实现代码在这里:https://github.com/ppoffice/hexo-theme-hueman/blob/master/layout/comment/counter.ejs 如果你使用的评论插件本身没有评论量接口的话就没法实现了。

tinyvane commented 7 years ago

@ppoffice 谢谢回复,暢言是有接口的。这个文件我找到了,暢言提供了一个js来获取,请问这个文件我有点看不懂呢,如何调用暢言提供的js文件呢?

tinyvane commented 7 years ago

@ppoffice

这是暢言官方提供的方法,这句话应该加到哪个文件里呢?如果是放在counter.ejs里面的话,列表页会加载多次
ppoffice commented 7 years ago

@tinyvane 请尝试这里:https://github.com/ppoffice/hexo-theme-hueman/blob/master/layout/common/scripts.ejs