Skip to content

Instantly share code, notes, and snippets.

@kiranchavala
Last active August 14, 2020 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiranchavala/152291d148c3694b37d691ca1df1fe8d to your computer and use it in GitHub Desktop.
Save kiranchavala/152291d148c3694b37d691ca1df1fe8d to your computer and use it in GitHub Desktop.
jekyll.md
Check the ruby version
kiranchavala@Kirans-MacBook-Pro ~ % ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
gem version
kiranchavala@Kirans-MacBook-Pro ~ % gem -v
3.0.3
#Install jekyll
kiranchavala@Kirans-MacBook-Pro ~ % gem install jekyll bundler
#Create folder
kiranchavala@Kirans-MacBook-Pro website % jekyll new ga_blog
#start serving
kiranchavala@Kirans-MacBook-Pro ga_blog % bundle exec jekyll serve --trace
#Installing a theme
Edit the gemfile and _config.yml
gem "jekyll-theme-minimal"
In config.yml
theme: jekyll-theme-minimal
bundle update
bundle install
bundle exec jekyll serve --trace
change the layout to default in markdown pages
git init
git checkout -b gh-pages
git status
git add .
git commit -m "initial commit"
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment