aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Types.hs b/Types.hs
index b46011e..9dba9a4 100644
--- a/Types.hs
+++ b/Types.hs
@@ -16,7 +16,7 @@ data PageInfo =
PageInfo
{ _pagePath :: FilePath -- ^ original path to the markdown file
, _pageMeta :: Y.Value -- ^ YAML metadata extracted from the file
- , _pagePandoc :: Text.Pandoc.Definition.Pandoc -- ^ Page data
+ , _pageDoc :: Text.Pandoc.Definition.Pandoc -- ^ Page data
}
deriving (Show)
@@ -32,10 +32,10 @@ data SiteState =
-- | Map of tags, assigning to each tag sequence a list of
-- tagged page mounts
, _htags :: M.Map [String] [FilePath]
- -- | List of installed files (prevents overwriting)
+ -- | List of installed files (enables sharing)
, _installs :: S.Set FilePath
- -- | List of installed pages (basically directories with index; prevents overwriting)
- , _renders :: S.Set 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
@@ -54,7 +54,7 @@ emptySiteState =
, _redirects = M.empty
, _htags = M.empty
, _installs = S.empty
- , _renders = S.empty
+ , _targets = S.empty
, _templates = M.empty
, _outputDir = "_site"
, _defaultTemplate = "default.html"