Hi, you might be able to take some pieces from mine at https://github.com/bamos/cv.
I use Python and Jinja templates to convert a YAML document
to Markdown/HTML and PDF and currently publish it
to my Github pages Jekyll blog at http://bamos.github.io/cv/.