How To: Blog With Jekyll
Open GitBash. Check whether you have Ruby installed in your machine or not.
ruby -vIf it’s not there you can download and install Ruby from here https://rubyinstaller.org/.
Install all three options 1, 2, 3 respectively.
gem -vInstall jekyll bundler using gem.
gem install jekyll bundlerCreate a blog using jekyll. it’s a scaffolder to generate all necessary files with structures.
jekyll new blog_nameGo inside blog_name and execute following code.
bundle exec jekyll servePlease note that budle exec you’ll only need the first time. From here on after changing anythin to your site, you can only execute jekyll serve, it’ll publish all your changes to server.
It’ll fire up your blog in http://localhost:4000/
You’re ready to publish!
git add -all
git commit -m 'Hello, World!'
git pushBrowse to https://UserName.github.io
Voila! You have your own blog published to the world.
Happy Blogging!
1) Github Official Page 2) Tutorial