August 27, 2017
I have to admit: I really enjoy creating websites, but I’m awfully lazy when I have to work on my own!
Over the years I’ve tried different languages and tools. In the early days I used to manually edit all the HTML pages by hand, which I regretted immediately. So I started writing my own shell scripts, Java programs, XML formats and whatever. My first open source project ever was devoted to this: Web site Generator.
I tried Wordpress for a while but then switched to Drupal (at that time it was version 5.x). For many, may years I’ve used and loved Drupal. It empowered me, as user, to customize every little bit of my website. I’ve used it to built many other websites and it always amazed me with its ease of use, performance, extensibility.
Here comes Hugo
Recently I stumbled upon Hugo. As many modern projects, it sported a pompous headline:
The world’s fastest framework for building websites
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
I’m quite a skeptical when it comes to: new solutions to old problems, framework, ease of use and “fastest” things, and combinations of sort.
I wanted to do a very specific, demanding test:
How difficult would it be to re-implement https://www.megadix.it/ using Hugo?
I crafted, fine-tuned, re-organized this websites so much that I thought it would be too difficult, but I could at least understand how this tool works.
I immediately loved Hugo: it really is fast, easy, flexible. I could re-implement my whole website in just a couple of days of work. How amazing!
This is how I did it:
- I created the website
- chose a Hugo theme from the https://themes.gohugo.io/, and customized it
- manually converted all articles from HTML to Markdown using the excellent to-markdown tool by Dom Christie
- fixed inconsistencies and errors in markdown
- copied categories and tags from Drupal articles
- copied images and files to
/staticfolders under hugo