Using Hugo as the new static site generatorTue, Feb 17, 2015 · 2 minute read
Four years since my last blogpost and a very crappy old style of the site, I have decided completely revamp it.
Hugo has every feature you would expect from a static site generator: sitemap generation, RSS generation, serving and life-reloading during development and a good documentation.
But the most important feature for me is the very good theming mechanism that allows you to use a theme as a git submodule in your project, without changing any code in it. It is always possible to update the theme to the latest version or even change it to a different one. Every style specific changes that you want to make happen in your own templates.
Another property of Hugo that convinced me, is its performance - Hugo is blazing fast! Generating this site takes about 25 milliseconds.
One thing, that bothered me was, that the Hugo’s documentation describes a very complicated way of hosting the blog on Github. Therefor I have chosen my submodule-way, again.
$ git submodule add http://github.com/mohlendo/mohlendo.github.com public
Now every time the site is rebuild, you can commit and push the changes to the website repository and github will automatically publish them - in my case to http://mohlendo.github.com.
That’s it again - a new site generator and a new blogpost! Probably the last, though, until I change the site generator again…