Skip to content

Instantly share code, notes, and snippets.

@huazhanshen
Last active May 25, 2018 06:43
Show Gist options
  • Save huazhanshen/b695869f27ad7359235f670e3379fd35 to your computer and use it in GitHub Desktop.
Save huazhanshen/b695869f27ad7359235f670e3379fd35 to your computer and use it in GitHub Desktop.
无需服务器的个人博客
博客基于 GitHub Pages 与 Github API 实现无后台,可动态发布博客的系统 博客数据储存于 gist 通过 Github API 进行增删改查。
方法比较傻瓜化,小白也能利用 Github Pages 轻松搭建一个无需服务器的动态博客。
演示地址
https://yuweining.github.io
项目地址
https://github.com/GitHub-Laziji/vblog
项目特点
[x] 基于 GitHub Pages 无需服务器
[x] 改进传统 GitHub Pages 不能动态发布的缺陷
[x] 无需任何软件 快速搭建
[x] 包含电脑端和移动端
[x] 单页面应用
快速使用
点击 github 头像旁边的 “+” 号 选择 Import repository
克隆地址填 https://github.com/GitHub-Laziji/GitHub-Laziji.github.io
项目名填 你的用户名.github.io
克隆完成后 修改文件 /static/configuration.json 中的 githubUsername 为自己的 github 用户名
现在 https://你的用户名.github.io 就是你的个人博客了, 例如https://github-laziji.github.io
获取 Token
在 github > settings > Developer settings > Personal access tokens 勾选 gist 和 repo 权限 获取 Token
获取 Token 后可以直接设置 网站标题、副标题、颜色、音乐链接等。不需要直接在/static/configuration.json编辑。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment