Hugo

Written by Sam McGeown on 9/1/2020
Published under Community

I’ve posted previously about moving to Hugo as a publishing platform for this blog , this post is a bit more about how I’m managing the publishing using GitLab’s CI/CD Pipelines.

Firstly, I need to mention that I’m using three different repositories for my code base, and why. The three repositories are:

  • definit-hugo - this contains the hugo site configuration
  • definit-content - this contains the site content - markdown files, images etc
  • definit-theme - this contains the VMware Clarity-based theme I use for my site

definit-content and definit-theme are git submodules in the definit-hugo project, mapped into the /content and /themes folders respectively. This allows me to keep the configuration, content and theme separate, and to manage them as separate entities. The aim is that the theme will eventually be in a position to be released, and I don’t want to have to extract it from my hugo code base later on.