github linkedin vsco
← home

Switching to Hugo

20 Feb 2024

The Issue

Before I was writing articles in HTML: writing out header tags and carefully nesting code tags in pre tags. This dramatically slowed the rate at which articles were created–in fact, it made me not want to write. In order to keep consistent with posting to the site, I needed a way to quickly write articles.

The Solution

Markdown is extremely easy to write and I already take notes in Obsidian. When writing Markdown, the render that the editor displays is simply the Markdown file processed into HTML, so I knew I wanted a way to convert my Markdown articles into HTML. Obviously I could use online converters, but I wanted something automated; I wanted to write Markdown and have it converted to HTML before my very eyes. That’s when I stumbled upon Hugo.

Hugo is a framework for building static sites that is written in Go. Running the hugo server command will start the webserver and will automatically process the Markdown you write into HTML–as you write it. Not only that, but because Hugo is written in Go and makes use of Go templates, I was already familiar with how it worked and I don’t lose the speed of Go.