Disable layout for XML no longer works
omichelsen opened this issue · 3 comments
omichelsen commented
I have a sitemap.xml.jade file and in _data.json
I have the following lines:
"sitemap": {
"layout": false
},
This have been working great since I started using Harp, but now it stopped working. It will add the default layout template to the top of my XML file, and thus making it unreadable/invalid.
I didn't change anything in my source files, only upgraded Harp to the latest version (v0.25.0).
MartyO256 commented
Try adding the extension to the file name if you have a sitemap.xml.jade
file:
"sitemap.xml": {
"layout": false
},
omichelsen commented
That did the trick - thanks! 👍
Pectojin commented
This does not seem intentional. The documentation seems very explicit about this being supposed to work without the extension.