diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-05-24 23:43:33 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-05-24 23:43:33 +0200 |
| commit | 66fb2f5f08a2dab465784c55ff694c08736b7d3e (patch) | |
| tree | 78f7f253ee975a862cf3afacc3f178640b256141 /Types.hs | |
| parent | 1a24212ec42c9ae93baa13fe30000f5e47176b62 (diff) | |
| download | reploy-66fb2f5f08a2dab465784c55ff694c08736b7d3e.tar.gz reploy-66fb2f5f08a2dab465784c55ff694c08736b7d3e.tar.bz2 | |
render, install files
Diffstat (limited to 'Types.hs')
| -rw-r--r-- | Types.hs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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" |
