Documentation
¶
Overview ¶
Package index creates metadata for directory listings and generates index pages for every directory which contains other files. This is useful for creating static directory views for downloads, image galleries, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
Entry contains information about a directory item.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index chainable plugin context.
func New ¶
New creates a new instance of the Index plugin. The meta parameter allows additional metadata to be provided for generated indices.
func (*Index) FilesKey ¶
FilesKey sets the metadata key used to access the files in the current directory (default: "Files").
func (*Index) IndexFilename ¶
IndexFilename sets the name of the file to be created as the directory index (default: "index.html").