LeaveIt icon indicating copy to clipboard operation
LeaveIt copied to clipboard

添加 gitalk 评论和 disqus 懒加载;添加文章目录导航

Open ehlxr opened this issue 7 years ago • 2 comments

添加 gitalk 评论和 disqus 懒加载;添加文章目录导航 。参考: demo

配置信息如下:

comment = true            # 是否开启评论
toc = true                # 是否开启目录
autoCollapseToc = true   # Auto expand and collapse toc

# Gitalk 评论配置(gitalk 请参考:https://github.com/gitalk/gitalk)
[params.gitalk] 
    owner = "xxx"              # Your GitHub ID
    admin = "xxx"      # GitHub repository owner and collaborators
    repo = "xxxx"               # The repo to store comments
    clientId = "xxx"           # Your client ID
    clientSecret = "x"       # Your client secret
    countSign = "条评论"

# disqus 评论配置
[params.disqus]
    name = "xxx"      # disqus_shortname
    lazy = true         # lazy to load disqus

ehlxr avatar Oct 11 '18 03:10 ehlxr

这个功能很赞

zeech3 avatar Oct 12 '18 04:10 zeech3

可以 merge 吗?

FrankFang avatar Nov 14 '18 03:11 FrankFang