Below you will find pages that utilize the taxonomy term “Hugo”
Keeping Hugo Upto Date With Github Actions
It’s been about 5 months since I moved this blog over to a static site build with Hugo and in this time I’ve never really gotten round to updating Hugo following new releases. So the solution that jumped out recently was to automate upgrades via GitHub actions.
Finding out the current release is very easy as Hugo is hosted on GitHub, plus they publish releases. This means it’s possible to get the tag for the latest version with Javascript as follows:
Migrating Posts From Wordpress to Hugo
After a rather long editing effort and also needing to clean up Flickr (to get into the new free tier limits), last month I completed the migration of content from Wordpress (minus the odd or deleted Flickr photo post’s) to my now not so new Hugo static site.
While part of this was scripted, by writing out the markdown files for each post from the XML export via this not so pretty, but functional script:
New Blog Hosting
This is my new static blog that’s built with Hugo (using the Ananke theme) and hosted in AWS, using Cloudfront with a private S3 bucket as the origin.
Following the ideals of being Cloudnative, all the infrastructure is built using Terraform and deployed via GitHub actions.
terraform {
required_version = "~> 0.13.0"
required_providers {
aws = {
source = "hashicorp/aws"
}
}
So far I’m finding Hugo is really nice to use, huge plus being able to write blog posts in Markdown. For various reasons: