artisan / jigsaw-sitemap
This package is abandoned and no longer maintained.
No replacement package was suggested.
A site map hook for Jigsaw CMS.
0.1.1
2018-04-10 04:03 UTC
Requires
- spatie/array-to-xml: ^2.7
This package is auto-updated.
Last update: 2019-10-03 22:19:50 UTC
README
This package is still in development, use at your own risk.
Usage
Install the package.
composer install artisan/jigsaw-sitemap
Make sure to add the source/sitemap.xml
to your gitignore to avoid having to commit it every time it builds.
Set up the sitemap on your bootstrap.php
file.
use Artisan\Jigsaw\Sitemap; (new Sitemap($container))->collections('posts')->create();
You can also add some defaults for those special URLs:
(new Sitemap($container))->fill([ [ 'loc' => 'https://example.com', 'lastmod' => '2014-01-1', 'changefreq' => 'weekly', ] ])->collections('posts', 'donuts')->create();