Ire Aderinokun has written about how to do something similar in her Bits of code blog:
Bits of code
She is also using Ghost.