基于 GitHub API 的博客工具,尽情享受 GitHub Issue 带来的便利吧。
https://ttop5.github.io/issue-blog
- git: ^v2.0.0
- node: ^v10.0.0
- yarn: ^v1.12.0
点击 这里,勾选以下两项:
read: user Read all user profile data
user: email Access user email addresses (read-only)
如果你的项目是属于一个组织的,还需要勾选一个权限:
read: org Read org and team membership
打开 Chrome 的 Console,运行:
window.btoa('{你的 GitHub Token}')
如果你把 Token 直接明文推到 GitHub 仓库中,此 Token 就会立马失效,所以需要加密混淆。
- Fork 此项目到自己仓库;
- 将代码克隆到本地;
- 编辑
.env
文件; - 安装依赖:
yarn install
; - 查看效果:
yarn dev
; - 部署:
yarn deploy
,项目仓库 ->Settings
->GitHub Pages
->Source
-> 选择gh-pages branch
(Enforce HTTPS
选不选看你); - 浏览器地址栏输入:
{你的用户名}.github.io/issue-blog
查看。
A blog tool based on GitHub API, enjoy the convenience brought by GitHub Issue.
https://ttop5.github.io/issue-blog
-git: ^v2.0.0
-node: ^v10.0.0
-yarn: ^v1.12.0
Click here, check the following two:
read: user Read all user profile data
user: email Access user email addresses (read-only)
If your project belongs to an organization, you also need to check a permission:
read: org Read org and team membership
Open Chrome's Console and run:
window.btoa('{Your GitHub Token}')
If you push the Token directly to the GitHub repository in plaintext, the Token will immediately become invalid, so encryption and confusion are required.
- Fork this item to your own warehouse;
- Clone the code locally;
- Edit the
.env
file; - Installation dependency:
yarn install
; - Check the effect:
yarn dev
; - Deployment:
yarn deploy
, project repository ->Settings
->GitHub Pages
->Source
-> selectgh-pages branch
(If you chooseEnforce HTTPS
, it will see you); - Enter in the address bar of the browser:
{your user name}.github.io/issue-blog
to view.