NGP
Is life always this hard or is it just when you're a kid
当你老了,回顾一生,就会发觉:什么时候出国读书,什么时候决定做第一份职业、何时选定了对象而恋爱、什么时候结婚,其实都是命运的巨变。只是当时站在三岔路口,眼见风云千樯,你作出选择的那一日,在日记上,相当沉闷和平凡,当时还以为是生命中普通的一天。
一. 获得 clientID 和 clientSecret
由于需要调用 Github API ,首先点击注册一个 Github Application 。
callback URL 填博客主页
二. 设置 hexo\themes\jsimple_config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| comments: enable: true disqus_shortname: gitment: repo: githubID: ClientID: ClientSecret: lazy: false gitalk: on: true owner: ngp320 repo: gitalk-comment admin: ['ngp320'] clientID: xxxxxxxxxxxxxxxxxx clientSecret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx pagerDirection: first
|
三. 进入一下 你的博客主页 ,github登陆授权一下
没了 =。= wo kao 10分钟解决? 比gitment简单12~24小时
四. gitalk.css 样式 与主题原来的样式冲突
- 注释引入的 gitalk.css
- 下载 gitalk.css,删去markdown部分L5~582,重命名为 gitalk_without_markdown_style.css
- 再从代码中引入本地的 gitalk_without_markdown_style.css
- 这样 markdown部分就不会互相干扰了 =。= 完美
This article just represents my own viewpoint. If there is something wrong, please correct me.