aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-05-25 00:08:10 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-05-25 00:10:49 +0200
commit32e050bac753687b801a40c91e398a0132ccffbc (patch)
tree1bdd712879147d52e9fb7d25926d05da50f83a0e /Types.hs
parent98c38296e0ef543074b4cfb352e364903f7898ef (diff)
downloadreploy-32e050bac753687b801a40c91e398a0132ccffbc.tar.gz
reploy-32e050bac753687b801a40c91e398a0132ccffbc.tar.bz2
tags get sourced
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Types.hs b/Types.hs
index 9dba9a4..72f81c7 100644
--- a/Types.hs
+++ b/Types.hs
@@ -33,13 +33,14 @@ data SiteState =
-- tagged page mounts
, _htags :: M.Map [String] [FilePath]
-- | List of installed files (enables sharing)
- , _installs :: S.Set FilePath
+ , _installs :: S.Set (String, FilePath)
-- | List of installed files (prevents overwriting)
, _targets :: 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
+ , _assetDir :: FilePath -- ^ Directory for output
, _defaultTemplate :: FilePath -- ^ Name of the default template
, _redirectTemplate :: FilePath -- ^ Name of the template for redirect pages
}
@@ -57,6 +58,7 @@ emptySiteState =
, _targets = S.empty
, _templates = M.empty
, _outputDir = "_site"
+ , _assetDir = "assets"
, _defaultTemplate = "default.html"
, _redirectTemplate = "redirect.html"
}