This is my first post using Pelican.

I’ve recently started a new blog using Pelican.

To install Pelican I used pip install pelican markdown ghp-import, then I created a new directory and used pelican-quickstart to setup the new directory with the pelican project.

Added a script for publishing


pelican content -o published -s && \
ghp-import -b master published && \
git push origin master

Added a hook to .git/hooks/post-commit:

~ $ sh

Don’t forget to set execution permissions to the scripts:

~ $ chmod +x
~ $ chmod +x .git/hooks/post-commit

It was really easy to setup, now with every commit, the blog gets published!