bobdenotter / sitemap
Provide a sitemap (.xml) for your Bolt 5 site
Installs: 8 890
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 4
Open Issues: 1
Language:XSLT
Type:bolt-extension
Requires
- php: >=7.1.3
Requires (Dev)
- bolt/core: ^4.0.0
- symplify/easy-coding-standard: ^10.2
README
Author: Bob den Otter
This Bolt extension can be used to add a sitemap.xml
to your site..
Installation:
composer require bobdenotter/sitemap
.. and, you're good to go! Visit /sitemap.xml
on your site, and you should
see the result!
Warning: To generate the correct new links to contenttypes using overrides in routes.yaml
, update your ContentType definition by setting e.g. record_route: pagebinding
. Otherwise, the sitemap will still show Bolt's default routes.
The part below is only for developing the extension. Not required for general usage of the extension in your Bolt Project.
Running PHPStan and Easy Codings Standard
First, make sure dependencies are installed:
COMPOSER_MEMORY_LIMIT=-1 composer update
And then run ECS:
vendor/bin/ecs check src --fix