{"_id":"@barry-flynn/hexo-github-calendar","_rev":"4-80b1e25c8b388e865b0466b68ea89feb","name":"@barry-flynn/hexo-github-calendar","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@barry-flynn/hexo-github-calendar","author":{"name":"Barry-Flynn"},"version":"1.0.0","description":"Plugin for displaying GitHub contribution heatmaps in Hexo","keywords":["hexo","plugin","github"],"license":"MIT","main":"index.js","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"funding":{"type":"individual","url":"https://blog.meta-code.top/Reward-list/"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"hexo":"^5.4.0"},"gitHead":"4141dc0a0895a27ed5a0456c8e703bf68aa6445e","_id":"@barry-flynn/hexo-github-calendar@1.0.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tKjM1aN6vpdFpkPXiHigYSHA2cHysNk391y/PjzttlmvItQ6McF1jIhunGgAoVbysgQ34RFrnfEu20jc5nZjgw==","shasum":"ae35519a0d6c73dd6cf031f6f8b5ad8ce2e2c75a","tarball":"https://registry.npmjs.org/@barry-flynn/hexo-github-calendar/-/hexo-github-calendar-1.0.0.tgz","fileCount":8,"unpackedSize":45034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHg3TLZss/CH16ytU5xzpasyRDXnUwOIlSTt8/l9ZhXJAiBmyBFXaGeoomnEbycICz7lB4rX5eqywqunitIyRHKtYA=="}]},"_npmUser":{"name":"barry-flynn","email":"Barry-Flynn@qq.com"},"directories":{},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-github-calendar_1.0.0_1710503336243_0.883102430450251"},"_hasShrinkwrap":false},"1.0.1":{"name":"@barry-flynn/hexo-github-calendar","author":{"name":"Barry-Flynn"},"version":"1.0.1","description":"Plugin for displaying GitHub contribution heatmaps in Hexo","keywords":["hexo","plugin","github"],"license":"MIT","main":"index.js","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"funding":{"type":"individual","url":"https://blog.meta-code.top/Reward-list/"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"hexo":"^5.4.0"},"gitHead":"4141dc0a0895a27ed5a0456c8e703bf68aa6445e","_id":"@barry-flynn/hexo-github-calendar@1.0.1","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-IyBsGyBrEgR93zaZsQc2OHgkthjYBuhQhUVYgmfdJxxyWZbTWH7Lq9jVQaQAwuH35LKqHmsuNdVYSJ6jznaXUw==","shasum":"21d97dd7575b301346f4d9a281711b6fe849c8ed","tarball":"https://registry.npmjs.org/@barry-flynn/hexo-github-calendar/-/hexo-github-calendar-1.0.1.tgz","fileCount":9,"unpackedSize":920400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFwoQ65EzLVbr2qn7iuvGPoGID9+ce2afMwG5Qm2daoAiEA5Gdm98G52FB1z3KT03286kO6HXq+KAkmfaobmNdKnCM="}]},"_npmUser":{"name":"barry-flynn","email":"Barry-Flynn@qq.com"},"directories":{},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-github-calendar_1.0.1_1710507562118_0.7083466908298262"},"_hasShrinkwrap":false},"1.0.2":{"name":"@barry-flynn/hexo-github-calendar","author":{"name":"Barry-Flynn"},"version":"1.0.2","description":"Plugin for displaying GitHub contribution heatmaps in Hexo","keywords":["hexo","plugin","github"],"license":"MIT","main":"index.js","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"funding":{"type":"individual","url":"https://blog.meta-code.top/Reward-list/"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"hexo":"^5.4.0"},"gitHead":"af4c8ffe6d19c8f33d26562b572381814ceee471","_id":"@barry-flynn/hexo-github-calendar@1.0.2","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BMs4W54cSVP8xEPfOr9nWR8sA0GZFEPBuFyzez06yCiLp8QYZDEFlKxYxDD//YuGL6YWqQe69yApA6pf2m03UQ==","shasum":"005ef09b360fe9c124de151521742181dcacad31","tarball":"https://registry.npmjs.org/@barry-flynn/hexo-github-calendar/-/hexo-github-calendar-1.0.2.tgz","fileCount":9,"unpackedSize":920398,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9WryS0Un0rzWHXPznjVvryctjXDbCvumP2SFWgxlK4gIgDM4/SDndhpk83+1NuMDzXwibNe3yut6cybuCNDDCEfg="}]},"_npmUser":{"name":"barry-flynn","email":"Barry-Flynn@qq.com"},"directories":{},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-github-calendar_1.0.2_1710510558836_0.0007313195638156689"},"_hasShrinkwrap":false},"1.0.3":{"name":"@barry-flynn/hexo-github-calendar","author":{"name":"Barry-Flynn"},"version":"1.0.3","description":"Plugin for displaying GitHub contribution heatmaps in Hexo","keywords":["hexo","plugin","github"],"license":"MIT","main":"index.js","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"funding":{"type":"individual","url":"https://blog.meta-code.top/Reward-list/"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"hexo":"^5.4.0"},"gitHead":"af4c8ffe6d19c8f33d26562b572381814ceee471","_id":"@barry-flynn/hexo-github-calendar@1.0.3","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ESiNgmViJWO3JZ0zX3Q6JR+Q2+lsyxR/OT4V5iYdp3GdDSMpXPnLjRVhhOLF1lCtnm+fTgNg2Z4ITaVgcPauWg==","shasum":"0c0e845ac2bef6e5e16babab4f05a4edc7b01b2b","tarball":"https://registry.npmjs.org/@barry-flynn/hexo-github-calendar/-/hexo-github-calendar-1.0.3.tgz","fileCount":9,"unpackedSize":920416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4gnjdIIcAfAZtT0US7eqoisPCKGzqZPt03yeEkA3N6AiEAv8i/VOqwyWfB8QpmyY5N76LqxfRdTcs6D9qRYunuSSA="}]},"_npmUser":{"name":"barry-flynn","email":"Barry-Flynn@qq.com"},"directories":{},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-github-calendar_1.0.3_1710511048359_0.3951469000220411"},"_hasShrinkwrap":false},"1.0.4":{"name":"@barry-flynn/hexo-github-calendar","author":{"name":"Barry-Flynn"},"version":"1.0.4","description":"Plugin for displaying GitHub contribution heatmaps in Hexo","keywords":["hexo","plugin","github"],"license":"MIT","main":"index.js","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"funding":{"type":"individual","url":"https://blog.meta-code.top/Reward-list/"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"hexo":"^5.4.0"},"gitHead":"af4c8ffe6d19c8f33d26562b572381814ceee471","_id":"@barry-flynn/hexo-github-calendar@1.0.4","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5rjifVaoH5BMuG+NcIKNHsv0PHkn5Egvc4VNe5NRR6NUy6OYKJbQM6l4l3HIwHcXYRxtbqJ+eRcrXdHX1BG6mA==","shasum":"12b502a95e7b6aee690b448ea3f1449fbb3b6a09","tarball":"https://registry.npmjs.org/@barry-flynn/hexo-github-calendar/-/hexo-github-calendar-1.0.4.tgz","fileCount":9,"unpackedSize":920304,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4ydCRXb9oMvQiZ56bXVkRszosUAkG6Gh+jrs7xeUOhAiEAjzXCnEYss04Y/2Ddi9nZSQ6EEckmCWriItSgSxaSRn8="}]},"_npmUser":{"name":"barry-flynn","email":"Barry-Flynn@qq.com"},"directories":{},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-github-calendar_1.0.4_1710511365891_0.5164939640335837"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-15T11:48:56.148Z","1.0.0":"2024-03-15T11:48:56.408Z","modified":"2024-03-15T14:02:46.523Z","1.0.1":"2024-03-15T12:59:22.332Z","1.0.2":"2024-03-15T13:49:19.017Z","1.0.3":"2024-03-15T13:57:28.565Z","1.0.4":"2024-03-15T14:02:46.116Z"},"maintainers":[{"name":"barry-flynn","email":"Barry-Flynn@qq.com"}],"description":"Plugin for displaying GitHub contribution heatmaps in Hexo","homepage":"https://github.com/Barry-Flynn/hexo-github-calendar","keywords":["hexo","plugin","github"],"repository":{"type":"git","url":"git+ssh://git@github.com/Barry-Flynn/hexo-github-calendar.git"},"author":{"name":"Barry-Flynn"},"bugs":{"url":"https://github.com/Barry-Flynn/hexo-github-calendar/issues"},"license":"MIT","readme":"# hexo-github-calendar\r\n\r\n本插件用于在 Hexo 中显示 GitHub 贡献度热力图\r\n\r\n![hexo-github-calendar](hexo-github-calendar.png)\r\n\r\n## 安装依赖\r\n\r\n```sh\r\nnpm i @barry-flynn/hexo-github-calendar\r\n```\r\n\r\n## 添加配置\r\n\r\n在 Hexo 项目根目录的 `_config.yml` 文件最后面添加如下配置（注意是在 Hexo 的配置文件中添加，而不是主题的配置文件），以我所使用的 Butterfly 主题为例，需要添加的内容为：\r\n\r\n```yml\r\n# hexo-github-canlendar\r\n# 贡献度热力图插件 https://github.com/Barry-Flynn/hexo-github-calendar\r\ngithubcalendar:\r\n  enable: true        # 是否启用本插件\r\n  enable_page: /      # 要生效的页面，如 / 首页，/about/ 介绍页等\r\n  user: Barry-Flynn   # GitHub 用户名\r\n  layout:\r\n    type: id\r\n    name: recent-posts\r\n    index: 0\r\n  githubcalendar_html: '<div class=\"recent-post-item\" style=\"width:100%;height:auto;padding:10px;\"><div id=\"github_loading\" style=\"width:10%;height:100%;margin:0 auto;display: block\"><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"  viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50\" xml:space=\"preserve\"><path fill=\"#d0d0d0\" d=\"M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z\" transform=\"rotate(275.098 25 25)\"><animateTransform attributeType=\"xml\" attributeName=\"transform\" type=\"rotate\" from=\"0 25 25\" to=\"360 25 25\" dur=\"0.6s\" repeatCount=\"indefinite\"></animateTransform></path></svg></div><div id=\"github_container\"></div></div>'\r\n  pc_minheight: 280px\r\n  mobile_minheight: 0px\r\n  # 贡献统计的梯度色卡值，可自行调整\r\n  color: \"['#ebedf0', '#a2f7af', '#6ce480', '#54ad63', '#469252', '#31753c', '#1f5f2a', '#13531f', '#084111', '#032b09', '#000000']\"\r\n  # 推荐填写你自建的API接口，方法详见本插件配套Python后端 https://github.com/Barry-Flynn/python_github_calendar_api\r\n  api: https://github-calendar-api.meta-code.top/api\r\n  calendar_js: https://cdn.jsdelivr.net/gh/barry-flynn/hexo-github-calendar/hexo_githubcalendar.js\r\n  plus_style: \"\"\r\n```\r\n\r\n## 本地预览\r\n\r\n```sh\r\nhexo clean & hexo g & hexo s\r\n```\r\n\r\n## 说明与鸣谢\r\n\r\n本项目 fork 自仓库 [Zfour/hexo-github-calendar](https://github.com/Zfour/hexo-github-calendar)，对应的原 npm 依赖包是 [hexo-githubcalendar](https://www.npmjs.com/package/hexo-githubcalendar)，所匹配的原 Python 后端接口是 [Zfour/python_github_calendar_api](https://github.com/Zfour/python_github_calendar_api)，原来的传参方式是直接在 API 接口后面拼接用户名 `/api?Barry-Flynn`，不符合 key-value 形式的标准规范，因此我对前后端都进行了改进。\r\n\r\n本项目 [Barry-Flynn/hexo-github-calendar](https://github.com/Barry-Flynn/hexo-github-calendar) 为改进后的 Hexo 前端插件，对应的 npm 依赖包是 [@barry-flynn/hexo-github-calendar](https://www.npmjs.com/package/@barry-flynn/hexo-github-calendar)，新的后端 Python 接口是 [Barry-Flynn/python_github_calendar_api](https://github.com/Barry-Flynn/python_github_calendar_api)，其现在的传参方式为 `/api?user=Barry-Flynn`\r\n\r\n## 从旧版本迁移\r\n\r\n如果需要从旧依赖包迁移至本项目对应的新依赖包，请先卸载旧依赖：\r\n\r\n```sh\r\nnpm uninstall hexo-githubcalendar\r\n```\r\n\r\n再安装本项目所对应的新依赖：\r\n\r\n```sh\r\nnpm i @barry-flynn/hexo-github-calendar\r\n```\r\n\r\n并按照本文档调整根目录的 `_config.yml` 配置项即可，其中主题为 Butterfly、Volantis、Matery、MengD 的同学，可以查看 [_config.yml](./_config.yml) 文件中的模板，其他主题的同学请自行修改挂载元素配置项 `githubcalendar_html` 进行适配。\r\n\r\n为了服务稳定性，推荐根据 [Barry-Flynn/python_github_calendar_api](https://github.com/Barry-Flynn/python_github_calendar_api) 自己在 Vercel 或私有服务器自建 API 后端，本文档中提供的 api 地址可能承载不了大家的过量请求，会随时更换从而失效。\r\n","readmeFilename":"README.md"}