How to add/edit a post in your jekyll blog?
This post describes how to make changes to your jekyll blog. It can be done locally, where the github pages repo is local to your machine. Or, changes can also can done directly on github. The preview feature on github while adding a post makes it very easy to verify the format before it goes live in github.io website.
###Local Development
- Clone your github pages repo on your local machine
git clone https://github.com/yourusername/yourusername.github.io.git
- Create you page under posts directory
_posts/2016-3-3-Hello-World.md
- Serve the site using this command jekyll serve
- View local website at http://0.0.0.0:4000
- Once the changes are done, use regular git commands to push the changes to github pages repo.
###Remote - Github / Thirdparty Content Editor
- Visit
https://github.com/yourusername/yourusername.github.io/tree/master/_posts
- Click on Create New File button to create a new post with the same format
yyyy-mm-dd-Title.mld
- You can preview the page before you commit the changes.
Written on July 28, 2016