I recently switched to hugo and am LOVING it! It’s so flexible, easy to use and well documented.
I do some YouTube videos and have corresponding blog posts. I find it super annoying and fiddly to keep the links and the various sections in sync and up to date (e.g. I like to add links to the next video from the previous one when it goes live, but they’re often scheduled).
As a first step to automating some of this, I decided to use hugo to generate the descriptions and it’s working beautifully.
I documented the whole thing here:
and you can find the source for my site here:
My next steps are to set something up to sync the description when it has changed.
Eventually, I will also do an auto-uploader.
I’d welcome any feedback / suggestions / improvements and hope that what I’ve shared is useful!
As far as I could see, there is no way (currently) in hugo to specify a default output type for a type (i.e. youtube) of content, only a kind (e.g. page) of content.
You could also cascade the sitemap and build (you can remove the underscore) parameters. You can cascade from the site config or from content/youtube/_index.md.
The logic in that embedded hook is required for multilingual single-host sites and to properly resolve the destination under a number of other conditions.