天天看點

Github Pages + Jekyll 搭建靜态部落格選擇jekyll主題本地安裝ruby運作jekyll

選擇jekyll主題

在github上fork一個主題

例如https://github.com/Huxpro/huxpro.github.io

本地安裝ruby

ubuntu環境

sudo apt-get install ruby ruby-dev

sudo apt-get install nodejs

sudo gem install jekyll

sudo gem install rdiscount

sudo gem install jekyll-paginate

運作jekyll

切換到

jekyll serve --watch --port 4444

利用incremental regeneration特性降低build時間

jekyll serve --incremental
           

 參考:Why incremental regeneration in Jekyll 3.0 is such a big deal | I'd Rather Be Writing https://idratherbewriting.com/2015/11/04/jekyll-30-released-incremental-regeneration-rocks/

繼續閱讀