Cecil

Homepage extends AbstractGenerator implements GeneratorInterface

Homepage generator class.

This class generates the homepage for each language defined in the configuration. It creates a new index page for each language, collects all pages of that language, sorts them, and sets the necessary variables for the homepage. It also handles the case where the homepage already exists by cloning it. Additionally, it sets the default "main" menu and adds an alias redirection from the root directory if the language prefix is enabled for the default language.

Table of Contents

Interfaces

GeneratorInterface
Generator interface.

Properties

$builder  : Builder
$config  : Config
$generatedPages  : Collection

Methods

__construct()  : mixed
Gives the Builder to the object.
generate()  : void
Creates pages and adds it to collection.
runGenerate()  : Collection
Run the `generate` method of the generator and returns pages.

Properties

Methods

generate()

Creates pages and adds it to collection.

public generate() : void
 
On this page

Search results