jekyll搭建与写作
安装基本环境
windows 10下
- https://jekyllrb.com/docs/installation/windows/
搭建并推送到github
- jekyll new jekyll #在当前路径下新建jekyll的blog
- cd ./jekyll
- git init #初始化本地仓库
- 在github上新建一个名为jekyll的项目
- git remote add origin git@github.com:kunode/jekyll #本地添加远程仓库,前提是已经设置好了ssh的key
- jekyll build #Builds the site and outputs a static site to a directory called
_site
- bundle add webrick #出现错误后在当前项目路径下安装webrick(/servlet.rb:3:in `require’: cannot load such file – webrick (LoadError))
jekyll server #Does
jekyll build
and runs it on a local web server athttp://localhost:4000
, rebuilding the site any time you make a change.- git add .
- git commit
- git push -u origin master
插件及设置
写作
This post is licensed under CC BY 4.0 by the author.