The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chronicle::Plugin::Generate::Sitemap - Generate a sitemap automatically

DESCRIPTION

This module will be invoked automatically when your site is built via the on_generate hook that Chronicle provides.

It is responsible for creating the top-level /sitemap.xml file which you use for search engine submission, etc.

METHODS

Now follows documentation on the available methods.

on_generate

The on_generate method is automatically invoked to generate output pages. This particular plugin method is invoked after any on_initiate methods which might be present.

This method is responsible for generating a sitemap for your site.

Unlike all the other plugins it doesn't need to use a template because it can keep track of each distinct page which has been generated.

The generated sitemap file includes:

All the distinct posts ever made.

If you merge any static pages, such as /about/ then these will not be included in the map.

LICENSE

This module is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or

b) the Perl "Artistic License".

AUTHOR

Steve Kemp <steve@steve.org.uk>