Skip to content
Sitemap and sitemap index builder for Jigsaw.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
composer.json

README.md

Jigsaw Sitemap

Sitemap and sitemap index builder for Jigsaw.


Usage

Add as an event listener in bootstrap.php.

use Eastslopestudio\JigsawSitemap\SitemapListener;

/**
 * An afterBuild event is fired after the build is complete, and all output files
 * have been written to the build directory. This allows you to obtain a list of
 * the output file paths (to use, for example, when creating a sitemap.xml file),
 * programmatically create output files, or take care of any other post-processing tasks.
 *
 * @link http://jigsaw.tighten.co/docs/event-listeners/
 */
$events->afterBuild([
    SitemapListener::class,
]);

Note: You can exclude files from the sitemap by adding the following to your config.php:

'sitemap_exclude' => [
    '.htaccess',
    'favicon.ico',
    // ...
],
You can’t perform that action at this time.