Closed lorcalhost closed 4 years ago
This is a quirk with Go's templates, and I don't think you will convince them that it's a bug.
See this for a workaround:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/sitemap.xml#L1
Thanks for the workaround @bep
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug
When a custom
sitemap.xml
file is present in/layouts/
the generatedsitemap.xml
files have the first character (<
) substituted with<
To Reproduce
Steps to reproduce the behavior:
sitemap.xml
file in the/layouts/
directoryhugo
to build the sitesitemap.xml
filesExpected behavior
layouts/sitemap.xml
's content is copied in every builtsitemap.xml
file without the first character being corruptedTechnical details:
Using theme Academic