jekyll notes

December 28, 2017

Install Jekyll on Windows7

  • Install Ruby+Devkit

  • Install Jekyll and Bundler gems through RubyGems

gem install jekyll bundler

Command

Creates a new Jekyll site scaffold in PATH

jekyll new

Change into your new directory

cd new-site

Change Gemfile and _config.yml, run

bundle install
bundle

Build your site

bundle exec jekyll build
jekyll build  
jekyll b

Serve your site locally

bundle exec jekyll serve
jekyll server
jekyll serve
jekyll s

Preview a draft post

jekyll s --drafts

Browser

http://localhost:4000/

Category

Jekyll

You may also like

Markdown table自动修剪溢出 压缩Jekyll网站的HTML Jekyll网站创建站点地图

Comments (2)

Leslie Lai
June 11, 2018

Hello world.

Leslie Lai
January 05, 2019

Hello 2019.

Leave a comment