HiD::Generator::CategoryPages - Generator for category pages
This is an example of a generator plugin. It generates one page per key in the $site->categories hash, and injects that page into the site so that it will be published.
$site->categories
This plugin can be used with minimal work on your part by enabling the required options in your configuration and putting a file like the following example into the _plugins directory of your site:
_plugins
package Categories; use Moose; extends 'HiD::Generator::CategoryPages'; # you override the default destination like so has '+destination' => ( default => '_site/subdir' ); __PACKAGE__->meta->make_immutable; 1;
As shown above, you can control where the resulting pages are generated by overridding the destination attribute. If you want to tweak more than that, you're probably better off just copying the whole module into your _plugins directory and modifying it directly.
destination
version 1.991
John SJ Anderson <genehack@genehack.org>
This software is copyright (c) 2015 by John SJ Anderson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HiD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HiD
CPAN shell
perl -MCPAN -e shell install HiD
For more information on module installation, please visit the detailed CPAN module installation guide.