diff options
Diffstat (limited to 'Types.hs')
| -rw-r--r-- | Types.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -34,11 +34,14 @@ data SiteState = , _htags :: M.Map [String] [FilePath] -- | List of installed files (prevents overwriting) , _installs :: S.Set FilePath + -- | List of installed pages (basically directories with index; prevents overwriting) + , _renders :: S.Set FilePath -- | Map of Mustache templates organized by template search path (within -- the template directory) , _templates :: M.Map FilePath Mu.Template , _outputDir :: FilePath -- ^ Directory for output , _defaultTemplate :: FilePath -- ^ Name of the default template + , _redirectTemplate :: FilePath -- ^ Name of the template for redirect pages } deriving (Show) @@ -51,9 +54,11 @@ emptySiteState = , _redirects = M.empty , _htags = M.empty , _installs = S.empty + , _renders = S.empty , _templates = M.empty , _outputDir = "_site" , _defaultTemplate = "default.html" + , _redirectTemplate = "redirect.html" } -- | Monad for running the site generator. |
