github-pages使用简介

ssh,git等基础知识就不介绍了。

1. 使用github-pages

参考链接:https://pages.github.com/

基本上参照首页的指南就可以创建一个个人站点。选择User or organization site选项,然后会看到下图,然后一步步来就可以了。

最后效果

2. 使用jekyll

jekyll快速上手指南:http://jekyllrb.com/docs/quickstart/

gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/

sudo gem install jekyll -V

jekyll new . --force

本地结果是这样的:


3. 常见问题

a. 

这里如果直接参照该教材可能会出现错误。见:https://github.com/juthilo/run-jekyll-on-windows/issues/34

所以主要还是网络原因,可以使用淘宝的镜像:https://ruby.taobao.org/

b.

ERROR:  While executing gem ... (Gem::FilePermissionError)

    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

权限问题,加sudo就可以了


4. 参考链接

github-pages主页:https://pages.github.com/

jekyll快速上手:http://jekyllrb.com/docs/quickstart/

gem淘宝镜像:https://ruby.taobao.org/

利用github-pages建立个人博客:http://coolshell.info/blog/2015/03/github-pages-blog.html

你可能感兴趣的:(github-pages使用简介)