Skip to content

mrprajesh/blog

Repository files navigation

Rajesh's Blog

Jekyll Logo Last commit License

Workflow

  1. Run bundle exec jekyll server or ./run.sh
  2. Run ./newpost.sh <NEW-POST-NAME> to create new post
  3. Edit md file from _post/ folder that starts with current date
  4. Check on browser from http://127.0.0.1:4000/blog or http://127.0.0.1:4000
  5. Repeat 3 and 4 till it perfect
  6. Git commit and push
  7. The blog should appear if gh-page is enabled in repository settings
  8. Check https://mrprajesh.github.io/blog

Instead of last 3 steps use ./publish.sh [nameOfcommit] due the generated tag issue

Note: It would take a couple minutes to get published to the web.

Features added

  • Set base url as *.github.io/blog.
  • Created a R favicon blue.
  • Fixed the issues created due to above using {{site.baseurl}}.
  • Changed the US format date to UK/India in front page.
  • Changed the date format in post, added author name.
  • Added last modified at the footer.
  • Created a template post and shell script to create the new post.
  • Added syntax highlight from jekyll-pygments using monokai theme.
  • Added grouping post year wise.
  • Figure out last modified from the last modified date of md file?

One time setup

# dependencies
sudo apt-get install ruby-full build-essential zlib1g-dev

# set install folder
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

#install jekyll. And more gems.
gem install jekyll bundler
gem install safe_yaml liquid forwardable-extended  colorator 

#install the required gems
cd blograjz && bundle install



About

Rajesh's Blog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages