Baseof.html, block templates and list-types results in empty pages

Thank You! This thread solved the problem I was having while going through the book " Build Websites with Hugo: Fast Web Development with Markdown".

Many of the template files had comments in the first several lines like this:

<!--
! Excerpted from "Build Websites with Hugo",
! published by The Pragmatic Bookshelf.
! Copyrights apply to this code. It may not be used to create training material,
! courses, books, articles, and the like. Contact us if you are in doubt.
! We make no guarantees that this code is fit for any purpose.
! Visit http://www.pragmaticprogrammer.com/titles/bhhugo for more book information.
-->
{{ define "main" }}

  {{ .Content }}

{{ end }}

After hours of comparing the example theme code in the printed book to what was provided in the code download and not finding any errors I somehow found this thread and saw someone posting about removing a comment fixed their problem (blank white pages as output).

The specific file(s) that had the comment problem were:
\Hugo\portfolio\themes\basic\layouts\index.html
\Hugo\portfolio\themes\basic\layouts\single.html

I am still going through the book tutorial, but am guessing there might be an issue with any layout html file having comments, such as the list.html layout. I tried putting the comment block at the end and it also broke the output. I’m using Hugo v0.73.0 and my text editor is Notepad++.