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

相關文章
相關標籤/搜索