# Deployment of a Hugo site on GitHub Pages

GitHub Pages is a nice addition to GitHub which allows you to publish a website without much effort. As I looked around for guidance how to automate the deployment of a Hugo site to GitHub Pages I've only found rather complicated methods. Involving either local publishing with scripts which will publish the generated site to GitHub. Or automated setups which consists of scripts which do git commits over ssh. I went for the automated GitHub Pages deployment with Wercker in the first step.

As the command hugo new does not work for org files I'm using emacs for that task. The code is based on what I found at Peter Smith's which seem to be based on the code from Tohojo. First we've to set the location where the blog source files are. (setq hugo-base-dir "~/Documents/repo/TechBlog/") Then we need the current time in two formats. The first for the name of the file we are creating and the second is used in the frontmatter.