diff options
| author | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2024-10-14 14:10:16 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2024-10-14 14:10:16 +0200 |
| commit | 541217b03386c50725b8dc01c3de8cac718ab612 (patch) | |
| tree | c44be22f2c5f60e9e5cdd5519aede4ea08fc22ed /reploy.hs | |
| parent | 5d8872a5aa2573605c6ee2c1070c140e37c8083b (diff) | |
| download | reploy-541217b03386c50725b8dc01c3de8cac718ab612.tar.gz reploy-541217b03386c50725b8dc01c3de8cac718ab612.tar.bz2 | |
some fixes
Diffstat (limited to 'reploy.hs')
| -rw-r--r-- | reploy.hs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
