Sitemap
=======

This extension will automatically create XML sitemaps for your Bolt sites. After
enabling the extension, go to `http://example.org/sitemap.xml` to see it.

The bigger search-engines like Google and Bing will automatically pick up your
sitemap after a while, but it's always a good idea to explicitly tell the search
engines where to find it. To do so, add the following line to your robots.txt
file:

    Sitemap: http://example.org/sitemap.xml
    
and to the `<head>` section of your pages:

    <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />

Obviously, you should replace 'example.org' with the domain name of your website.

This extension adds a 'route' for `/sitemap.xml` and `/sitemap` by default, but it 
has lower priority than user defined routes. 
If you use the `pagebinding` in `routing.yml` (or anything similar like `/{slug}` ),
you need to add the following _above_ that route:

```
sitemapxml:
  path: /sitemap.xml
  defaults: { _controller: 'Bolt\Extension\Bolt\Sitemap\Extension::sitemapXml' }


sitemap:
  path: /sitemap
  defaults: { _controller: 'Bolt\Extension\Bolt\Sitemap\Extension::sitemap' }
```

Note, if you have a ContentType with the property `searchable: false`, that content 
type will be ignored.

Sitemap
=======

This extension will automatically create XML sitemaps for your Bolt sites. After
enabling the extension, go to `http://example.org/sitemap.xml` to see it.

The bigger search-engines like Google and Bing will automatically pick up your
sitemap after a while, but it's always a good idea to explicitly tell the search
engines where to find it. To do so, this extension automatically adds the link 
to the `<head>` section of your pages:

    <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />

Apart from that, it's good pratice to also add the following line to your 
`robots.txt` file:

    Sitemap: http://example.org/sitemap.xml
    
Obviously, you should replace 'example.org' with the domain name of your website.

This extension adds a 'route' for `/sitemap.xml` and `/sitemap` by default, but it 
has lower priority than user defined routes. 
If you use the `pagebinding` in `routing.yml` (or anything similar like `/{slug}` ),
you need to add the following _above_ that route:

```
sitemapxml:
  path: /sitemap.xml
  defaults: { _controller: 'Bolt\Extension\Bolt\Sitemap\Extension::sitemapXml' }


sitemap:
  path: /sitemap
  defaults: { _controller: 'Bolt\Extension\Bolt\Sitemap\Extension::sitemap' }
```

Note, if you have a ContentType with the property `searchable: false`, that content 
type will be ignored.

Update readme, correct text to insert link in header.
Update readme, correct text to insert link in header.

Fixed #28.