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.

Read more

Share Comments

Creating new Org Files for Hugo

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.

Read more

Share Comments

Switching from Wordpress to Hugo

I used Wordpress for about 10 years. In those ten years I produced 72 posts. Most of these posts were about audaxes or travels I made. During the travels I made my posts with the Wordpress iOS client application. Which was sometimes a hassle because pictures weren't uploaded reliably and I ended up with missing pictures in my posts. Also the amount of vulnerabilities either in php or in Wordpress increased.

Read more

Share Comments