Content Adaptors

Content Adaptors come to Hugo!

A long anticipated release has come to the hugo static site generator that will be a real game changer. This is part of release v0.126.0. The new feature, called Content Adaptors allows you to generate static pages in your public directory at build time from a remote resource, such as an api.


I just followed the example here on the hugo docs to set up the simple books demo, but I intend to use this new feature to build out some great new dynamic content for content marketing purposes, such as lists of top products.

Small changes to my single.html

I added changes to fit my template better and a link to buy the book on amazon with a search link searching for the isbn. I haven’t figured out a way to link by isbn directly, you could do that years ago when I last messed with that stuff, but now the isbn is 13 digits and the asin is only 10.

<a href="{{ $isbn }}&tag=grrquarterly-20" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
  Buy it Now