Hugo

2021-04-20

Super quick one but hopefully you can see I’ve redone my blog.

I liked Ghost a lot but the instance I was running was having some annoying persistent issues, and I spun my wife up a server for her new business (https://tealandturquoise.co.uk/).

As such I thought have a stab at something serverless. To reduce costs, simplify my life, and as a learning exercise.

I’d looked in to it before and kind of bounced off a few solutions but this time I decided to give Hugo a go and I’ve got to say it’s absolute bloody magic.

It took a little bit of setting up but now I just create a post in markdown, run the following command and hugo will parse it all, generate the static pages, upload them to s3 and invalidate the cloudfront cache. The whole deployment takes less than 2 seconds.

jbstans@jack-minipc:/mnt/c/Users/jack/My Documents/blog-hugo$ hugo -D && hugo deploy
Start building sites …

                   | EN
-------------------+-----
  Pages            | 22
  Paginator pages  |  2
  Non-page files   |  0
  Static files     | 16
  Processed images |  0
  Aliases          |  2
  Sitemaps         |  1
  Cleaned          |  0

Total in 101 ms
Deploying to target "blog" (s3://jbstans.co.uk?region=eu-west-2)
Identified 20 file(s) to upload, totaling 41 kB, and 0 file(s) to delete.
Success!
Invalidating CloudFront CDN...
Success!

Nice.


Enter your instance's address