Hello all, I’m attempting to integrate HUGO with a headless CMS. I’m in need a more dynamic way to implement menus. Is there a way to read information from a JSON file in a template partial to create a menu section?
Thanks!
Hello all, I’m attempting to integrate HUGO with a headless CMS. I’m in need a more dynamic way to implement menus. Is there a way to read information from a JSON file in a template partial to create a menu section?
Thanks!
Have you searched the documentation and this forum?
Take a look at the getJSON
template function to fetch your data for the menu.