Github 留言系统
让评论质量更高,让网站与 Github 关联 适合程序员的评论系统,基于 Github issues 留言
使用
data-api
评论 想在此留下评论,请访问 issues_link 提交评论
issues_link
会自动替换成 https://github.com/nimojs/github-comments/issues/1
gc.load()
gc// 或者githubComments// 当 全局变量 gc 被占用时使用 githubComments
参数 | 说明 | 示例 |
---|---|---|
repos | 项目地址 | nimojs/blog |
issues | issues id | 2 |
element | 渲染容器 | "#demo" document.getElementById('demo') $('#demo') |
<div id="demo"></div>
<script src="https://unpkg.com/github-comments@0.4.0/gc.js"></script>
<script>
gc.load('nimojs/blog', 2, '#demo')
</script>
灵感来自: http://fex.baidu.com/webuploader/demo.html
全站使用示例: http://fmsjs.org/
参与开发
git clone https://github.com/nimojs/github-comments.gitcd github-commentsnpm i --registry=https://registry.npm.taobao.org# server npm run snpm run dev