gsluthra / my_blog

My personal blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This is a Jekyll based blog of Gurpreet.

Ruby and RVM

This project already contains a .ruby-gemset and .ruby-version file, to ensure that if you have RVM installed, then it will install gems in the right directory, and give you a unique gemset.

Installation & Usage

bundle install

# See blog locally on port 4000
bundle exec jekyll serve

# See blog locally on port 4000 (with drafts)
bundle exec jekyll serve --draft

# Command used by Github to build. Use this to verify if there are any errors
bundle exec jekyll build --safe

Publish to Github Pages

# Create a local gh-pages branch which contains only the assets that need to be published
JEKYLL_ENV=production bundle exec rake site:publish

# Switch to this new branch
git checkout gh-pages

# FORCE Push the gh-branch to MASTER branch of your github.io repository assuming the remote name is 'website'
git push website gh-pages:master --force

# Once successfully published, tag the current branch
git checkout -b gh-pages-rel-x

# Delete the local gh-pages branch.. since we don't need it anymore
git branch -D gh-pages

# Push backup to github
git push origin gh-pages-rel-x

Jekyll Related Links

Thanks

[Gurpreet] This blog was forked from https://github.com/willkoehler/. Thank you!

[Original] This blog was forked from https://github.com/kippt/jekyll-incorporated. Originally built for sendtoinc.com, your workspace for sharing and organizing knowledge. Original template built by:

Karri Saarinen

Jori Lallo

About

My personal blog

License:Other


Languages

Language:HTML 48.9%Language:SCSS 40.6%Language:CSS 4.7%Language:Ruby 4.5%Language:Shell 0.7%Language:CoffeeScript 0.6%Language:JavaScript 0.1%