Skip to content
forked from bolt/Sitemap

Bolt Sitemap extension - create XML sitemaps for your Bolt website.

License

Notifications You must be signed in to change notification settings

rv-garnier/Sitemap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 want AnimalDesign/bolt-translate extension compatibily or if you use the pagebinding in routing.yml (or anything similar like /{slug} ), you need to add the following above that route:

sitemap:
  path: /sitemap
  defaults: { _controller: sitemap.controller:sitemap }

sitemapXml:
  path: /sitemap.xml
  defaults: { _controller: sitemap.controller:sitemapXml }

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

About

Bolt Sitemap extension - create XML sitemaps for your Bolt website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 63.8%
  • HTML 36.2%