Hugo Content Adapters

I read briefly about content adapters for HUGO today. This is an exciting way to pull in data from a remote source in JSON or XML format and cache it on a site build. This could be a handy way of grabbing data from other sources and providing a really easy directory. I am not sure how I would use this just yet, but it could, for instance, replace the video section of LinuxCreative.com.

This could also be an effective bridge between a headless WordPress installation and a HUGO front-end. Importantly, there would need to be a build hook that would be triggered by WordPress upon publishing content. The idea is intriguing and offers a lot of different use cases. This could also be a way to show off work on different public platforms than YouTube, such as GitHub, etc. Let’s say you want to pull in GitHub release notes or issues, you could quite easily connect that API to your site to pull in the information and build out content for you in your specified template.

tags: hugoblogapi