采用Jekyll + github + pygments构建个人博客


Create new repository

You'll need to create a repository named <strong>username.github.io</strong>.
The <strong>username</strong> must be your github name.
So as my repository sbzhu.github.io

Create new repository

Clone your new repository to local disk

git clone git@github.com:/sbzhu/sbzhu.github.io

Then a director named .git is about here.


Get other's jekyll template

You can get jekyll template from website like jekyll themes or just simply clone one from others github like this:

  • clone template jekyll to local

    git clone https://github.com/sbzhu/huxpro.github.io.git
    

Then you'll get a director named huxpro.github.io.git

  • Run this jekyll on localhost

    cd huxpro.github.io.git
    jekyll build
    jekyll serve
    
  • browse it with site : http://localhost:4000


Add template jekyll project to your repository

cp -r huxpro.github.io.git/!(.git) sbzhu.github.io/

Push this repository to github

git add -A
git commit -m 'initial version'
git push origin master

Enjoy you Github pages

Visit the website www.sbzhu.github.io



最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容