A module for dealing with Page
s. This module is mostly internally used.
- data PageSection = PageSection {
- unPageSection :: (String, String, Bool)
- readPage :: FilePath -> Hakyll [PageSection]
- readPageAction :: FilePath -> HakyllAction () [PageSection]
Documentation
data PageSection Source
A page is first parsed into a number of page sections. A page section consists of:
- A key
- A value
- A
Bool
flag, indicating if the value is applicable for rendering
PageSection | |
|
readPage :: FilePath -> Hakyll [PageSection]Source
Read a page from a file. Metadata is supported.
readPageAction :: FilePath -> HakyllAction () [PageSection]Source
Read a page from a file. Metadata is supported.