Include a HTML File in a Hugo Post

I was looking for a way to include HTML snippets into Hugo posts. The magic formula includes shortcode templates and readFile. Hugo’s shortcode templates are a very neat way to bring custom, reusable pieces of HTML into your posts. It’s as simple as adding a file into the layouts/shortcodes folder. The full file structure of this example looks like this: ┌─ content │ └─ posts │ └─ example │ ├─ index.
Read more →

Installing Hugo (or anything else) into a Docker Container

I’ve little bit of an aversion to installing new software on my computer. Especially if I only want to try something out, something that I won’t use very often or if I don’t really trust to source. There Docker comes in handy. I usually just spwan up a container, install the software, play around a little and then throw it away again. I did the same today when I wanted to try out Hugo.
Read more →