HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

layouts/sitemap.xml first character gets substituted #1753

Closed lorcalhost closed 4 years ago

lorcalhost commented 4 years ago

Describe the bug

When a custom sitemap.xml file is present in /layouts/ the generated sitemap.xml files have the first character (<) substituted with &lt;

To Reproduce

Steps to reproduce the behavior:

  1. Create a custom sitemap.xml file in the /layouts/ directory
  2. Run command hugo to build the site
  3. See first character of newly generated sitemap.xml files

Expected behavior

layouts/sitemap.xml 's content is copied in every built sitemap.xml file without the first character being corrupted

Technical details:

gcushen commented 4 years ago

Hugo is the tool which generates the sitemap - feel free to raise any Hugo issues in the Hugo Github.