当前位置: 首页 > 工具软件 > pages-gem > 使用案例 >

websites-pages-jekyll - github blog

倪举
2023-12-01

安装jekyll 参考https://jekyllrb.com/docs/installation/
需要:nodejs,ruby(2.0以上),rubygems,python等

//环境
$sudo apt-get install nodejs
//安装ruby 2.0
$sudo apt-add-repository ppa:brightbox/ruby-ng-experimental &&
$sudo apt-get update &&
$sudo apt-get install -y ruby2.0 ruby2.0-dev ruby2.0-doc

//安装bundler
$sudo apt-get install bundler

//安装jekyll
$gem install jekyll

快速开始:

$jekyll new my-awesome-site
$cd my-awesome-site
$jekyll serve
//访问http://localhost:4000

为项目快速建站(chyler是我的github账户名
1. create a repository #repository name:chyler.github.io
2. 本地terminal

$git clone https://github.com/chyler/chyler.github.io
$cd username.github.io
$echo "Hello World" > index.html
#add
$git add --all
#commit
$git commit -m "Initial commit"
#push
$git push -u origin master
#访问http://chyler.github.io

选用jekyll theme http://jekyllthemes.org/

 类似资料: