Chronicle::Plugin::Generate::Tags - Generate tags pages.
This module will be invoked automatically when your site is built via the on_generate hook which Chronicle provides.
on_generate
It is responsible for creating the top-level /tags/ hierarchy.
/tags/
Now follows documentation on the available methods.
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.
on_initiate
This method is responsible for generating the tag-output, which includes two sets of pages:
/tags/index.html
This is created using the tag_index.tmpl theme-template, and contains a list of all the tags which have ever been used.
tag_index.tmpl
/tags/$tag/index.html
This is created for each distinct tag, from the theme-template tag.tmpl
tag.tmpl
If either template is missing then this plugin will skip that part of the generation.
Output a page (`output/tags/$tag/index.html`) for each distinct tag we've ever used.
Return any tags related to that specified.
Output `output/tags/index.html` containing a complete tag-cloud of the tags we've ever used.
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".
Steve Kemp <steve@steve.org.uk>
To install App::Chronicle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chronicle
CPAN shell
perl -MCPAN -e shell install App::Chronicle
For more information on module installation, please visit the detailed CPAN module installation guide.