aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-06-08 13:51:30 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-06-08 13:51:30 +0200
commit4c1f0f9a4e4ee68aab098a61d3749960f568ec7f (patch)
tree5ebcf8c0e7b5e60cfd7bac12e78fc01d175d95ef /Types.hs
parentb385e1b3f7982cfc2fce28e4e60c740d39cc97f8 (diff)
downloadreploy-4c1f0f9a4e4ee68aab098a61d3749960f568ec7f.tar.gz
reploy-4c1f0f9a4e4ee68aab098a61d3749960f568ec7f.tar.bz2
install files properly
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Types.hs b/Types.hs
index 12088b6..8e53611 100644
--- a/Types.hs
+++ b/Types.hs
@@ -44,6 +44,8 @@ data SiteState =
, _defaultTemplate :: FilePath -- ^ Name of the default template
, _redirectTemplate :: FilePath -- ^ Name of the template for redirect pages
, _tagTemplate :: FilePath -- ^ Name of the template for tag listing pages
+ , _urlBase :: FilePath -- ^ "Root route" to prepend to all absolute links.
+ , _dumpFinalState :: Bool -- ^ Triggers printing out the structure when the processing finishes.
}
deriving (Show)
@@ -63,6 +65,8 @@ emptySiteState =
, _defaultTemplate = "default.html"
, _redirectTemplate = "redirect.html"
, _tagTemplate = "tag.html"
+ , _urlBase = "/"
+ , _dumpFinalState = False
}
-- | Monad for running the site generator.