- Run
bundle exec jekyll server
or./run.sh
- Run
./newpost.sh <NEW-POST-NAME>
to create new post - Edit
md
file from_post/
folder that starts with current date - Check on browser from http://127.0.0.1:4000/blog or http://127.0.0.1:4000
- Repeat 3 and 4 till it perfect
- Git commit and push
- The blog should appear if
gh-page
is enabled in repository settings - 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.
- 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?
# 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