Documentation
A Page is basically key-value mapping. Certain keys have special meanings, like for example url, body and title.
fromContext :: Context -> PageSource
Create a Page from a key-value mapping.
getValue :: String -> Page -> StringSource
Obtain a value from a page. Will resturn an empty string when nothing is found.
getBody :: Page -> StringSource
Get the body for a certain page. When not defined, the body will be empty.
readPage :: FilePath -> Hakyll PageSource
Read a page from a file. Metadata is supported, and if the filename
has a .markdown
extension, it will be rendered using pandoc.
splitAtDelimiters :: [String] -> [[String]]Source
Split a page into sections.