Build Websites with Hugo: Code in chapter two won't run

Hi Brian –

Thanks for responding! You wrote:

“That should be the only content in the file though. All the rest of the content should be gone.”

Actually, I had a comment in the file, along with the code I provided above. And when I removed that comment, the output magically reappeared! I really had no idea that the presence or absence of a comment would make such a difference.

Do other files in Hugo respond this way to comments? I may have to do some experimenting to find out. In any case, thank you for taking the time to respond; it really helped!

-Chris Adams.

1 Like