基于 GitHub API 的博客工具,尽情享受 GitHub Issue 带来的便利吧。
基于 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 就会立马失效,所以需要加密混淆。
.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)
⚠️Warning️: Don’t check anything else to avoid account security problems.
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.
.env
file;yarn install
;yarn dev
;yarn deploy
, project repository -> Settings
-> GitHub Pages
-> Source
-> select gh-pages branch
(If you choose Enforce HTTPS
, it will see you);{your user name}.github.io/issue-blog
to view.-https://www.v2ex.com/t/586107 -https://github.com/ttop5/blog/issues/35