aboutsummaryrefslogtreecommitdiff
path: root/Types.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-18 19:44:07 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-18 19:44:07 +0200
commit8fd47d38bb4c3dead49600f93f5345c0b06a6fec (patch)
tree8d5a641b6fed82e432b5fce57a227879ef8421e1 /Types.hs
parentd792ed815ec21b5b95797b9411f2345e48f625c2 (diff)
downloadreploy-8fd47d38bb4c3dead49600f93f5345c0b06a6fec.tar.gz
reploy-8fd47d38bb4c3dead49600f93f5345c0b06a6fec.tar.bz2
source and use humanized tag names
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types.hs b/Types.hs
index beb008d..f4212d8 100644
--- a/Types.hs
+++ b/Types.hs
@@ -39,6 +39,8 @@ data SiteState =
-- | Map of tags, assigning to each tag sequence a list of tagged page
-- mounts. This one is expanded (tags imply parent categories).
, _ehtags :: M.Map [String] [FilePath]
+ -- | Map of "short" tags to expanded human-friendly names
+ , _tagNames :: M.Map String String
-- | List of installed files (enables sharing)
, _installs :: S.Set (String, FilePath)
-- | List of installed files (prevents overwriting)
@@ -131,6 +133,7 @@ siteOptions' = do
, _redirects = M.empty
, _htags = M.empty
, _ehtags = M.empty
+ , _tagNames = M.empty
, _installs = S.empty
, _targets = S.empty
, _templates = M.empty