Adding Google's Tag Manager connect code to your static Hugo site won't take long. Here's how to do it in 3 simple steps.
I struggled with this a bit longer than I might should have. In the end it wasn't too difficult but it also wasn't so straightforward to be obvious. Here's how to set up a custom page layout for any type of page you might imagine in Hugo.
This site's home page used to feature my most recent 5 posts. This post shows how the logic that made it work
This site's home page features my most-recently updated 5 posts. This the template logic that makes it happen.