mathiassm
Safe HaskellNone
LanguageGHC2024

MathiasSM.Rules.SinglePages

Description

Rules for standalone pages

Synopsis

Documentation

data Page Source #

A standalone page, backed by contentwritingspageName.* and routed by its `path:`

Constructors

Page 

Fields

page :: SiteConfig -> String -> Page Source #

A page with the minimal context and no extra templates

processPage :: SiteConfig -> Page -> Rules () Source #

Processes a standalone page, routed by its `path:` front matter

pageCompiler :: SiteConfig -> Page -> Compiler (Item String) Source #

Compiles a standalone page's body (shared by processPage and the dev example pages)