Hexo-Butterfly美化教程-[6]开启博客评论
Giscus
创建新仓库
在github上创建一个新仓库,名称任意,设置为仓库公开,在Features中勾选Discussions。
安装配置Giscus
(1)点击链接安装配置Giscus:Github Apps - giscus。
(2)配置完成后点击Giscus网址进行配置,跳转giscus。
(3)在仓库框中输入用户名/创建的仓库名
。
(4)在页面 ↔️ discussion 映射关系
中选择Discussion 的标题包含页面的 URL
。
(5)Discussion 分类
选择 Announcements
。
(6)特性
和主题
部分自行选择。完成后,将启用 giscus
中的script内容填入blog\_config.butterfly.yml
文件中评论配置部分。
1 | comments: |
Gitalk
创建新仓库
在github上创建一个新仓库,名称任意,设置为仓库公开。
安装配置Gitalk
(1)点击New OAuth Application,注册GitHub OAuth app。
(2)点击Register application
,跳转至新页面后,点击Generate a new client secret
,并复制创建好的Client secrets。
(3)在blog\_config.butterfly.yml
文件中评论配置部分。
1 | comments: |
博客搭建系列文章
- Hexo-Butterfly美化教程-[1]基础环境
- Hexo-Butterfly美化教程-[2]Butterfly主题安装
- Hexo-Butterfly美化教程-[3]建主要页面
- Hexo-Butterfly美化教程-[4]修改配置文件
- Hexo-Butterfly美化教程-[5]安装常用插件
- Hexo-Butterfly美化教程-[6]开启博客评论
- Hexo-Butterfly美化教程-[7]功能魔改(源码方式)
- Hexo-Butterfly美化教程-[8]随鼠标变幻的动态粒子线条背景
- Hexo-Butterfly美化教程-[9]繁沙
- 在Github上使用OsmosFeed搭建在线RSS阅读器(无需服务器)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 云野阁!
评论
GitalkGiscus