Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用 github issues 来写博客 #8

Open
fisker opened this issue Sep 25, 2017 · 0 comments
Open

如何使用 github issues 来写博客 #8

fisker opened this issue Sep 25, 2017 · 0 comments

Comments

@fisker
Copy link
Owner

fisker commented Sep 25, 2017

  1. fork 这个 repo
    https://github.com/fisker/blog

  2. git checkout 到本地

  3. 安装依赖

    yarn
  4. 修改 blog-config.js

    需要修改的地方

    • name
    • owner
    • repo
    • accessTokens
  5. 本地预览

    npm run dev
  6. 发布

    npm run publish

    commit, push 到 github

    在仓库的 settings 里面 找到 GitHub Pages 把 Source 修改为 master/docs 以后就可以访问了


https 和 自定义域名的问题可以用 https://www.netlify.com/ 解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant