From Draft to Publishing in Octopress
This post is mainly notes to myself for quicly creating blog posts, in particular working with drafts and publishing with Octopress and Jeyll, kind of an extention of the Working Session With Octopress and Jekyll post.
Short description
- Create a new draft entry with Octopress
- Run the Jeyll server in drafts mode
- Work on the draft
- Publish the draft to a post
- Publish the blog to github
The details
Create the new draft by:
cd <blog directory>
octopress new draft "From draft to publishing in Octopress"
Run the server in draft
mode:
jekyll serve --drafts
Once modifications of the post is complete, publish the draft to a post by:
octopress publish _drafts/from-draft-to-publishing-in-octopress.markdown
This will move the draft into the _posts
directory and timestamp it. It’s
now ready to publish publicly.