Working Session With Octopress and Jekyll
This post is mainly notes to myself for quicly creating blog posts.
Short description
- Create a new post entry with Octopress
- Run the Jeyll server
- Open the newly created page
- Update the
categories
section utilized by generate_categories Jeyll plugin in the Front Matter section of the post. - Update the page.
- Iterate until complete.
- Add files and commit, then push to github.
- Build the site into the local git directory containing the GitHub Pages content.
- Add files and commit, then push to GitHub Pages repository.
The Details
Create the new post entry:
cd <blog directory>
octopress new post "working session with octopress and jekyll"
Run the server:
jekyll serve
Open the pgae and update the Front Matter section:
Change the default from:
---
layout: post
title: Working Session With Octopress and Jekyll
date: 2015-08-09T01:13:53-06:00
---
to:
---
layout: post
title: Working Session With Octopress and Jekyll
date: 2015-08-09T01:13:53-06:00
categories:
- jekyll
- octopress
- github
---
I’m sure there is a way to create a template for doing this, but I haven’t got the far yet.
Now update the page and iterate until you’re bored!
When your content is ready, and if you’ve decided to keep the source for you site in a separate repository than the GitHub Pages repository, then you’ll want to push to the source repository.
git add .
git commit -m "updates"
git push origin master
Next build the site:
jekyll build
Note you’ll need to set the _config.yml file configured to point to the destination directory like:
destination: ../boundedinfinity.github.io
Now push to the GitHub Pages repository:
cd ../boundedinfinity.github.io
git add .
git commit -m "updates"
git push origin master
Then open the page and see your live changes!