{"id":21461572,"url":"https://github.com/snowdreams1006/hexo-plugin-gitalk","last_synced_at":"2025-07-15T03:30:24.813Z","repository":{"id":57263585,"uuid":"215311932","full_name":"snowdreams1006/hexo-plugin-gitalk","owner":"snowdreams1006","description":"Hexo 整合 gitalk 组件实现博客评论功能","archived":false,"fork":false,"pushed_at":"2019-11-13T04:14:22.000Z","size":654,"stargazers_count":11,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T12:16:41.403Z","etag":null,"topics":["comment","discuss","gitalk","gitbook","gitbook-plugin-mygitalk","github","gitment","hexo","hexo-plugin-gitalk","issues","mygitalk"],"latest_commit_sha":null,"homepage":"https://snowdreams1006.github.io/hexo-plugin-gitalk/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowdreams1006.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-15T13:55:20.000Z","updated_at":"2025-05-04T14:52:47.000Z","dependencies_parsed_at":"2022-08-25T02:51:43.271Z","dependency_job_id":null,"html_url":"https://github.com/snowdreams1006/hexo-plugin-gitalk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/snowdreams1006/hexo-plugin-gitalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fhexo-plugin-gitalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fhexo-plugin-gitalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fhexo-plugin-gitalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fhexo-plugin-gitalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdreams1006","download_url":"https://codeload.github.com/snowdreams1006/hexo-plugin-gitalk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fhexo-plugin-gitalk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397504,"owners_count":23758443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comment","discuss","gitalk","gitbook","gitbook-plugin-mygitalk","github","gitment","hexo","hexo-plugin-gitalk","issues","mygitalk"],"created_at":"2024-11-23T07:09:48.983Z","updated_at":"2025-07-15T03:30:24.238Z","avatar_url":"https://github.com/snowdreams1006.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 欢迎访问 hexo-plugin-gitalk 官网 👋\n\n[![npm:version](https://img.shields.io/npm/v/hexo-plugin-gitalk.svg)](https://www.npmjs.com/package/hexo-plugin-gitalk)\n[![npm:download](https://img.shields.io/npm/dt/hexo-plugin-gitalk.svg)](https://www.npmjs.com/package/hexo-plugin-gitalk)\n[![github:documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/snowdreams1006/hexo-plugin-gitalk#readme)\n[![github:maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/snowdreams1006/hexo-plugin-gitalk/graphs/commit-activity)\n[![npm:license](https://img.shields.io/npm/l/hexo-plugin-gitalk.svg)](https://github.com/snowdreams1006/hexo-plugin-gitalk/blob/master/LICENSE)\n[![github:snodreams1006](https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg)](https://github.com/snowdreams1006)\n[![微信公众号:雪之梦技术驿站-brightgreen.svg](https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7-%E9%9B%AA%E4%B9%8B%E6%A2%A6%E6%8A%80%E6%9C%AF%E9%A9%BF%E7%AB%99-brightgreen.svg)](https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg)\n\n\u003e Hexo 整合 gitalk 组件实现博客评论功能\n\n### 🏠 [主页](https://github.com/snowdreams1006/hexo-plugin-gitalk#readme)\n\n- Github : [https://snowdreams1006.github.io/hexo-plugin-gitalk/](https://snowdreams1006.github.io/hexo-plugin-gitalk/)\n- Gitee : [https://snowdreams1006.gitee.io/hexo-plugin-gitalk/](https://snowdreams1006.gitee.io/hexo-plugin-gitalk/)\n- Gitlab : [https://snowdreams1006.gitlab.io/hexo-plugin-gitalk/](https://snowdreams1006.gitlab.io/hexo-plugin-gitalk/)\n\n## 效果\n\n![gitalk-use-preview.png](gitalk-use-preview.png)\n\n## 用法\n\n### Step #1 - 更新 `_config.yml` 配置文件\n\n在 `_config.yml` 配置文件中,配置 `gitalk` 插件相关信息,详情见 [gitalk](https://github.com/gitalk/gitalk).\n\n```yml\nplugins:\n  gitalk:\n    clientID: GitHub Application Client ID\n    clientSecret: GitHub Application Client Secret\n    repo: GitHub repo\n    owner: GitHub repo owner\n    admin: \n      - GitHub repo owner and collaborators, only these guys can initialize github issues\n    distractionFreeMode: false\n```\n\n\u003e 注意: 前往 [gitalk](https://github.com/gitalk/gitalk) 申请开通 `gitalk` 功能后,**一定要替换成自己的相关配置**!\n\n其中,主要配置参数含义如下: \n\n- **clientID** `String` \n\n  **必须**. GitHub Application Client ID.\n\n- **clientSecret** `String` \n\n  **必须**. GitHub Application Client Secret.\n\n- **repo** `String` \n\n  **必须**. GitHub repository.\n\n- **owner** `String` \n\n  **必须**. GitHub repository 所有者，可以是个人或者组织。\n\n- **admin** `Array` \n\n  **必须**. GitHub repository 的所有者和合作者 (对这个 repository 有写权限的用户)。\n\n- **distractionFreeMode** `Boolean` \n  \n  Default: false。\n\n  类似Facebook评论框的全屏遮罩效果.\n\n### Step #2 - 运行 hexo 相关命令\n\n- 运行 `npm install` 命令安装到本地项目\n\n```bash\n$ npm install hexo-plugin-gitalk --save\n```\n\n- 运行 `hexo generate` 命令构建本地项目或者 `hexo server` 启动本地服务.\n\n```bash\n$ hexo generate\n```\n\n或者\n\n```bash\n$ hexo server\n```\n\n\u003e 注意: 本地测试时无法正常运行,必须是线上环境才会生效,且必须由管理员登录github进行初始化.\n\n## 示例\n\n不仅 [hexo-plugin-gitalk](https://github.com/snowdreams1006/hexo-plugin-gitalk) **官方文档**已整合 `gitalk` 版权保护插件,此外还提供了示例项目,详情参考 `example` 目录.\n\n- [官方文档](https://github.com/snowdreams1006/hexo-plugin-gitalk/tree/master/docs)\n- [官方示例](https://github.com/snowdreams1006/hexo-plugin-gitalk/tree/master/example)\n\n## 作者\n\n👤 **snowdreams1006**\n\n- Github: [@snowdreams1006](https://github.com/snowdreams1006)\n- Email: [snowdreams1006@163.com](mailto:snowdreams1006@163.com)\n\n## 🤝 贡献\n\n如果你想贡献自己的一份力量,欢迎提交 [`Issues`](https://github.com/snowdreams1006/hexo-plugin-gitalk/issues) 或者 `Pull Request` 请求!\n\n## 支持\n\n如果本项目对你有所帮助,欢迎 ⭐️ [hexo-plugin-gitalk](https://github.com/snowdreams1006/hexo-plugin-gitalk) 项目,感谢你的支持与认可!\n\n## 📝 版权\n\nCopyright © 2019 [snowdreams1006](https://github.com/snowdreams1006).\n\nThis project is [MIT](https://github.com/snowdreams1006/hexo-plugin-gitalk/blob/master/LICENSE) licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fhexo-plugin-gitalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdreams1006%2Fhexo-plugin-gitalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fhexo-plugin-gitalk/lists"}