Add Gitalk comment plugins for blog

background

  1. Disqus need over the wall in order to work properly
  2. Chatteris advertising
  3. Two kinds of comments are difficult to unified management system

optimization

  1. Use Gitalk comments plugin,

  2. gitalk use Github account login, the interface is clean and tidy, support MarkDown grammar.
  3. Gitalk is based on GitHub Issue and Preact comments plug-in development.

characteristic

  1. Login using GitHub
  2. Support for multiple languages ​​[en, zh-CN, zh-TW, es-ES, fr, ru]
  3. Support individuals or organizations
  4. No interference pattern (set to true open distractionFreeMode)
  5. Shortcuts to submit comments (cmd | ctrl + enter)

installation

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">

<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>

Please refer to the specific installation steps official document https://github.com/gitalk/gitalk/blob/master/readme-cn.md

effect

Remark

  1. It is worth mentioning that the label limit issus can not exceed 50 characters

id: decodeURI(location.pathname), // Ensure uniqueness and length less than 50

** If you want to know more, please pay attention to micro-channel public number **
![](https://img2018.cnblogs.com/blog/1821244/201909/1821244-20190929160000177-1821477798.jpg)

Guess you like

Origin www.cnblogs.com/mrChangChang/p/11608367.html