aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-05-24 19:31:54 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-05-24 19:31:54 +0200
commit1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b (patch)
tree5ef2d1c8461a47bd77963ad189b05c4705eb8efb /Types.hs
parentc0e5feaa378779bebf0c225b78547a1cfcbcd60c (diff)
downloadreploy-1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b.tar.gz
reploy-1c4a4bc54ab8b2c7ad17e9942037a2ee8666458b.tar.bz2
check overwrites
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Types.hs b/Types.hs
index 8e842f4..b46011e 100644
--- a/Types.hs
+++ b/Types.hs
@@ -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.