This is how I am going about my pelican blog. This is a rough draft for my own reference as well as to those who want to use static generators for their blogs.

  1. I open two tabs in my terminal. In the first I go into my pelican virtualenv to get into the backend.
  2. In the second window, I use a python script to make_blog_entry , which generated the skeleton for my post in restructuredtext format. It also opens the post in vim, so that I can edit it.
  3. I open shutter the screenshot program to take the requisite screenshot and save it to the images folder of the blog so that it can be referenced in my blog as well as make it available to my upload script.
  4. Run make devserver in the first teminal, and see the output in the browser, keep making the changes in the second terminal in vim till I am satisfied.
  5. Then run make stopserver to stop the development server. And and then run make rsync_upload to generate the public version of my site and upload it to this site. The script asks me for my password which I enter and it uploads it via rsync, ensuring speed and optimisation.

I initially wanted to use fab and livereload for the process, which will further reduce my time for writing since I won't have to reload the browser to check the changes. I will rewrite this post after incorporating that, but for the time-being, this will do. It is efficient enough.

- Satish Viswanathan


comments powered by Disqus