sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 346 forks source link

RSS not being excluded from Layout #591

Closed magician03 closed 4 years ago

magician03 commented 7 years ago

The RSS is not being excluded from Layout even after mentioning in _data.json file about exclusion as shown below. Have tried both jade and EJS formats. Not Working in both.

{
    "rss": {
        "layout": false
    }
}
adamfr33man commented 7 years ago

I'm also having the same problem on a site that I built about a year ago. This used to work but now it puts the layout around my sitemap

adamfr33man commented 7 years ago

Actually, turns out for me it seems I need to update the sitemap to be sitemap.xml as my file is named sitemap.xml.ejs. @magician03 perhaps try changing yours to "rss.xml" ?

{
    "sitemap.xml": {
        "layout": false
    }
}

I'm ok with this, but it means this page is now misleading: https://harpjs.com/recipes/blog-sitemap

jorgepinon commented 7 years ago

I thought I had the same problem but then I realized that I had

"sitemap" : {
    "layout": false
}

where it should have been "sitemap.xml"

However I do see that @adamfr33man does have the trailing .xml in his example.

benpetersen commented 6 years ago

Thank you @jorgepinon and @adamfr33man, I've been searching for this for a while! I'm surprised the number of people with harp setup without an accessible sitemap because of this issue

xixiaofinland commented 5 years ago

Thank you folks above... I have been debugging for one night and reached here...