-
Set up ruby environment. First install ruby using brew:
$ brew install ruby
Add following line in ~/.gemrc
gem: --user-install
Install bundler
$ gem install bundler
Check your ruby environment
$ gem env
It will show you gem path. Ensure that ge path shown there are in your PATH.
If not, update your PATH in .bashrc
export PATH="/usr/local/lib/ruby/gems/2.7.0/bin:${PATH}"
-
Change directory to where you have cloned the repo.
$ cd <github-pages-repo ...> $ bundle install
This will install Jekyll and any other Ruby gems/plugins needed.
-
Build the site, it generates output in _site directory
$ jekyll build $ ls -l <...>/_site $ cat <...>/_site/index.html
To build production version:
$ JEKYLL_ENV=production jekyll build
-
Start Jekyll Server
$ jekyll serve
-
See website at localhost:4000
Most of the content is in Markdown language, and here is an helpful Cheetsheet. There are several online markdown editors, for example JBT, StackEdit, and Dillinger.
Syntax highlighting stylesheet was generated as following:
$ rougify style github > assets/common/css/syntax-github.css
blog/_posts/
: English blog postsblog/_posts/trekking
: Trekking blog poststech/_posts/
: Posts on programming, technology etc.hindi/_posts/blog
: हिन्दी ब्लॉगhindi/_posts/manpraan
: मन-प्राणhindi/_posts/madhyaahan
: मध्याहनhindi/_posts/besabab
: बेसबबhindi/_posts/brihannala
: बृहन्नलाhindi/_posts/other
: अन्य