Chen Bin asked me to share my Nikola+Org work-flow, and share an example post.
The org source for any post can be found by changing the URL of a post
I don't have much of a work-flow, because I don't post too often, but here is what I typically do, to make a new post.
I start off by creating a new post using
$ nikola new_post
and then give the post a title and start editing the post in Emacs.
I have a simple snippet that lets me insert tags, based on existing tags.
Once I'm happy with the content of a post, I run
nikola auto to
build the source and serve it locally, and see if the post "looks"
reasonable, after being rendered.
Once, I'm happy with it, I commit the post and deploy it using
GITHUB_SOURCE_BRANCH = 'master' GITHUB_DEPLOY_BRANCH = 'gh-pages' GITHUB_REMOTE_NAME = 'origin' # Commands to execute to deploy. Can be anything, for example, # you may use rsync: # "rsync -rav output/* email@example.com:/srv/www/site" # And then do a backup, or ping pingomatic. # To do manual deployment, set it to 
I also have a plugin, that posts captured bookmarks and quotes onto the blog, with a single command. I should probably make the sources of my blog open, and push it onto GitHub.
- I use my own plugin for Nikola which lets me write posts in org-mode. There is a similar plugin by Chen Bin, that exports posts to intermediate html, that is then used by Nikola.
- The source for my blog is now on GitHub
- I also have custom elisp to be able to make a new post, and deploy the site from within Emacs.