Toward using a Headless CMS with Hugo: Building Pages from an API #196
Replies: 7 comments 2 replies
-
|
Hi! I love the article, but I cannot get it to work. As I follow along, things go fine until the end of step 1. I get an error about $file being an undefined variable. Any ideas why this error is coming up?
I tried this in a fresh Hugo quickstart project and then tried to run what you have by cloning your repo. I couldn't get that to work either, even though I followed the directions to run npm install then run Hugo. So now I'm back to trying this in the clean project and struggling with it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @georgemirandajr and thanks for spotting this it should be I just fixed the article! |
Beta Was this translation helpful? Give feedback.
-
|
I can't wait to try this! Thank you for always posting such great resources for the community |
Beta Was this translation helpful? Give feedback.
-
|
Hi Regis, the main directory name switches from That's anyway a great article, I've been searching hard for such an highlight, merci beaucoup |
Beta Was this translation helpful? Give feedback.
-
|
Hello @regisphilibert thanks a lot for your article, it's really helping to bypass one of the missing feature of hugo! |
Beta Was this translation helpful? Give feedback.
-
|
Hey @aurelienb ! It's not easy without the repo... so I can only suggest some basic checks. Is your main project a Hugo Module? Have you |
Beta Was this translation helpful? Give feedback.
-
|
Hi! and thank you so much for this awesome article, being able to generate data programmaticaly from API is amazing actually! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The thread to discuss this article ☝️
Beta Was this translation helpful? Give feedback.
All reactions