Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
UTF-8-BOM In Layouts Results In Blank Page #4895
Hugo Version: v0.42.2 windows/amd64 BuildDate: 2018-06-28T12:36:53Z
When certain layouts files start with a BOM the pages fail to render. This does not impact all files though.
Our layout folder contains:
The shortcodes and partials work perfectly fine when they have a BOM. In _default baseof.html works fine with a BOM, however home, section & single do not. When they have a BOM the rendered page is just blank. All our content files have BOMs.
The home, section and single files are really simple and look like:
Other people have had this problem https://discourse.gohugo.io/t/baseof-html-block-templates-and-list-types-results-in-empty-pages/5612/12
This can obviously be fixed by changing the encoding of the file but all our projects are standardised on with a BOM so it would be great if all files could be the same.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.