Develop GitHub Pages Site Locally by Jekyll: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


<syntaxhighlight lang="cfg">
<syntaxhighlight lang="cfg">
# vim./ _config.yml
# vim ./_config.yml
theme: jekyll-theme-cayman
theme: jekyll-theme-cayman
repository: chorkeinc/chorkeinc.github.io
repository: chorkeinc/chorkeinc.github.io

Revision as of 10:21, 15 September 2018

# 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