hakyll-dir-list: Allow Hakyll to create hierarchical menues from directories.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Hakyll extension which supports the creation of hierarchical menus from source files in a directory structure. Adittionally single page web sites can created by using flattened page id's instead of urls.


[Skip to ReadMe]

Properties

Versions0.1.1.0, 0.1.1.0, 1.0.0.0, 1.0.0.1, 1.0.0.2, 1.0.0.3, 1.0.0.4
Change logCHANGELOG.md
Dependenciesbase (==4.*), containers, filepath, hakyll (==4.11.*) [details]
LicenseBSD-3-Clause
AuthorRobert Hennig <robert.hennig@freylax.de>
MaintainerRobert Hennig <robert.hennig@freylax.de>
CategoryWeb
Home pagehttp://github.com/freylax/hakyll-dir-list
Bug trackerhttp://github.com/freylax/hakyll-dir-list/issues
UploadedMon Feb 12 22:25:48 UTC 2018 by RobertHennig

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for hakyll-dir-list-0.1.1.0

[back to package description]

hakyll-dir-list

Hakyll extension which supports the creation of hierarchical menus from source files in a directory structure. Adittionally single page web sites can created by using flattened page id's instead of urls.

Build the library

Usage

The exported dirListField function is similar to the Hakyll listField template function but creates additional context information which can be used in the template to create a hierarchical menu.

Context usable inside the template

Metainformation in the source files

For each subdirectory which should be processed one source file with the same base name should exist which can contain meta information:

The following meta information can be given

Example

See the example for an illustration of usage.