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.
- I open
two tabsin my terminal. In the first I go into my pelican
virtualenvto get into the backend.
- 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.
- I open
shutterthe 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.
make devserverin the first teminal, and see the output in the browser, keep making the changes in the second terminal in vim till I am satisfied.
- Then run
make stopserverto stop the development server. And and then run
make rsync_uploadto 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.