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

**URL:** <https://forum.devtalk.com/t/build-websites-with-hugo-code-in-chapter-two-wont-run/6324>\
**Category:** PragProg Customers\
**Tags:** book-build-websites-with-hugo\
**Created:** [27 January 2021 02:10 UTC](https://forum.devtalk.com/t/build-websites-with-hugo-code-in-chapter-two-wont-run/6324 "2021-01-27T02:10:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![SnowyMountainWeb](https://forum.devtalk.com/user_avatar/forum.devtalk.com/snowymountainweb/32/2369_2.png) [@SnowyMountainWeb](https://forum.devtalk.com/u/SnowyMountainWeb)\
**Post date:** [8 February 2021 10:05 UTC](https://forum.devtalk.com/t/build-websites-with-hugo-code-in-chapter-two-wont-run/6324/5 "2021-02-08T10:05:30Z")

</div>

> [@chriswadams](#):
>
> 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!

This solved the problem for me as well. My comment was at the end of the file.

FWIW, the code still ran correctly even with the formatting (indenting) of the index.html file being slightly different than that shown.

Thanks for finding the solution.

---

_[View the full topic](https://forum.devtalk.com/t/build-websites-with-hugo-code-in-chapter-two-wont-run/6324)._
