aboutsummaryrefslogtreecommitdiff
path: root/reploy.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2024-10-14 14:10:16 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2025-01-27 14:47:01 +0100
commita64aff0c1f8f2658b5576f6cb28e534a8a10474b (patch)
tree7609cfa54faf0819f383710a03f3a955d495af7a /reploy.hs
parent0e710215b45647995aea60b125936d5e3b4e125b (diff)
downloadreploy-a64aff0c1f8f2658b5576f6cb28e534a8a10474b.tar.gz
reploy-a64aff0c1f8f2658b5576f6cb28e534a8a10474b.tar.bz2
some fixes
Diffstat (limited to 'reploy.hs')
-rw-r--r--reploy.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/reploy.hs b/reploy.hs
index c540d5b..b94046d 100644
--- a/reploy.hs
+++ b/reploy.hs
@@ -210,7 +210,7 @@ addGlobalMeta meta = do
rtp <- rootedPageLink'
pn <- pageName'
aui <- use appendUrlIndex
- ifname <- use indexFilename
+ ifi <- use indexFile
Y.Object m <- (`objMerge` meta) <$> use extraMeta
let l = map (\(k, v) -> (K.toText k, Mu.toMustache v)) $ KM.toList m
pure . Mu.object
@@ -220,7 +220,9 @@ addGlobalMeta meta = do
, ("pageLink", Mu.overText $ T.pack . rtp . T.unpack)
, ("pageName", Mu.overText $ T.pack . pn . T.unpack)
]
- ++ (if aui then [("indexFilename", Mu.toMustache $ T.pack ifname )] else [])
+ ++ (if aui
+ then [("indexFile", Mu.toMustache $ T.pack ifi)]
+ else [])
-- | Get the expected timestamp file for a given filepath
metadataFile :: FilePath -> Site FilePath