Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

humans/jigsaw-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Jigsaw Sitemap

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();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages