The Indexifier simply scans all pages in the site for HTML pages ending not with index.html. When it finds matching pages, it replaces it's output path with one that uses a directory of the same name, and an index.html page.

Usage

The Indexifier is normally the last extension in a pipeline, if used.

For instance, a page with a path of /faq.html will be altered by the Indexifier to produce a page at /faq/index.html.

This extension works on the assumption that your webserver will serve any index.html file automatically, so by moving pages into directories, the resulting URLs are cleaner.

If for any reason, you want to exclude some paths from being Indexified, you should provide the excluded path to the extension constructor.

Parameters

None

Examples

Generic Installation

Awestruct::Extensions::Pipeline.new do
  extension Awestruct::Extensions::Indexifier.new()
end

Simple

Awestruct::Extensions::Pipeline.new do
  extension Awestruct::Extensions::Indexifier.new
end

Avoiding some paths

Awestruct::Extensions::Pipeline.new do extension Awestruct::Extensions::Indexifier.new(['path_regex_expression','another_path_expression']) end

See Also