diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-05-24 19:31:54 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-05-24 19:31:54 +0200 |
| commit | 1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b (patch) | |
| tree | 5ef2d1c8461a47bd77963ad189b05c4705eb8efb /Types.hs | |
| parent | c0e5feaa378779bebf0c225b78547a1cfcbcd60c (diff) | |
| download | reploy-1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b.tar.gz reploy-1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b.tar.bz2 | |
check overwrites
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. |
