github-pages使用简介

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

1. 使用github-pages
git

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

基本上参照首页的指南就能够建立一个我的站点。选择User or organization site选项,而后会看到下图,而后一步步来就能够了。shell

最后效果windows

2. 使用jekyllruby

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

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

sudo gem install jekyll -Vui

jekyll new . --forcespa

本地结果是这样的:


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

相关文章
相关标签/搜索