Skip to main content
Self Hosting a static website with Hugo and Caddy

Self Hosting a static website with Hugo and Caddy

·251 words·2 mins·
Table of Contents

Self Hosting your own page with Hugo
#

Jekyll
#

When originally starting with creating my own blog page, I used the website builder Jekyll. Jekyll is a fairly simple website builder that allows you to build static web pages using markdown as a language. As such, building a website with Jekyll is for the most part a straight forward process that yields beautiful results with predefined themes. During my testing with Jekyll however, I frequently had issues during the building process of my website. Even though I used a friends’ docker container as a builder, I often had issues with dependencies or files not being found when trying to build the site. Please note at this point that I am in no way ruling out layer 8 issues. I do not want to hold this against the Jekyll project at all. Either way, another friend recently also set up his site using Hugo, and so I was compelled to give it a try.

Hugo
#

Installing Hugo is very easy. I just used my package manager and everything worked out of the box. For the remaining initial setup I recommend you to follow the official getting started guide.

You then can choose from the many themes listed on the Hugo webpage, or even create your own one, should you want to do that.

Pitfalls I faced so far
#

I had issues with the configuration being correctly applied. Moving the *.toml configuration to a config/_default directory fixed it for me.