tomzx / blog.tomrochette.com

My blog.
http://www.tomrochette.com
MIT License
2 stars 0 forks source link

The sitemap is generating an error in production #78

Closed tomzx closed 7 years ago

tomzx commented 7 years ago

It is apparently rendering an HTML page instead of the XML sitemap. I haven't been able to reproduce the issue in development yet.

This page contains the following errors:

error on line 40 at column 16: Opening and ending tag mismatch: meta line 0 and head
Below is a rendering of the page up to the first error.
tomzx commented 7 years ago

Apparently, the template is being overwritten by the article.html.twig template.

For now, I've temporarily fixed the issue by modifying the sitemap.md file with the following content:

---
template: sitemap
template_format: xml
---

This forces the template to be set to sitemap instead of article.

tomzx commented 7 years ago

In the end, the issue was with the default template plugin, which overrides the template if none is set. I've implemented a small fix @ 141030a9a08768b83466c4d3f13c39e356394487.