Creating New Post in Octopress 3
This is a remainder for myself how to create new post with new Octopress 3.
octopress new post "post title"
open _posts/<timestamp>-post-title.markdown
(edit post)
git add .
git commit -m "adding new post"
git push origin source
jekyll build
octopress deploy
- Create new post stub with given title
post title
. Octopress creates new Markdown file. - Open new post for edit. On my Mac
.markdown
files are assosiated with MacDown - Open source Markdown editor for OS X. - Edit the post and save the changes.
- Add new file to git.
- Commit changes to git.
- Deploy post source code to GitHub project’s
source
branch. - Build the blog using Jekyll
- Deploy the blog with Octopress Deploy -
octopress-deploy
gem.
It’s also possible to test new post locally with Jekyll:
jekyll serve
Local server address is http://127.0.0.1:4000.