git Jekyll-Github Pages blog starter template
A starter template to help you publish your blog to Github pages.
Installation
- Download or clone this repo
- Follow instructions to create your page on Github https://pages.github.com
- You can update and preview your site locally by following these instructions https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
- Update
_config.yml
- Commit and push
Writing a new post
- Published posts reside in
_posts
directory and staging directory is _drafts
.
- You can manually writing new post by duplicating and modifying the existing Or,
- Using command line locally, navigate to root directory of this project and enter
./blog newpost <post title>
. This will generate a file (inside _posts directory) with today's date/time and post title as the file name. Open it and modify accordingly. When ready, move it to _posts
- Commit and push
- Other options for
./blog
command are:
newdraft <post title>
- Creates a file in _drafts directory
publish
- adds, commits and pushes your changes
serve
- runs bundle exec jekyll serve
on the local enviroment