Develop GitHub Pages Site Locally by Jekyll

From Chorke Wiki
Jump to navigation Jump to search
# vim ~/.bash_profile
export JEKYLL_GITHUB_TOKEN="2c12dd772d090a8f5b7015deff776810a347901b"
export PAGES_REPO_NWO=chorkeinc/chorkeinc.github.io
# vim ./_config.yml
theme: jekyll-theme-cayman
repository: chorkeinc/chorkeinc.github.io
# vim ./Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
# only for window x os using gitbash
export PATH=$PATH:/c/opt/mssys/msys64

gem install bundle
jekyll new chorkeinc.github.io
bundle install --gemfile=Gemfile
bundle exec jekyll serve
jekyll serve

References