nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

Add sitemap to robot.txt #30

Closed iwatakeshi closed 5 years ago

iwatakeshi commented 5 years ago

Hi,

I see a reference to the sitemap in the source code, but the docs doesn't show how to use it.

I've tried something like the following and it doesn't seem to work.

{
  robots: {
    sitemap: '...'
  }
}

Any clue?

Thanks

ricardogobbosouza commented 5 years ago

Hi @iwatakeshi, try with Sitemap instead of sitemap

{
  robots: {
    Sitemap: 'path/to/sitemap.xml'
  }
}
ricardogobbosouza commented 5 years ago

@iwatakeshi I'll fix it to identify with sensitive case

ricardogobbosouza commented 5 years ago

@iwatakeshi fixed case sensitive on v2.4.1

CavalcanteLeo commented 4 years ago

add on documentation