fix reversed append-url-index test

This commit is contained in:
Mirek Kratochvil 2023-10-16 11:31:16 +02:00
parent 318d603c51
commit 4f380f6b80

View file

@ -158,10 +158,10 @@ rootedPageLink' = do
ub <- use urlBase
app <- use appendUrlIndex
if app
then pure (ub </>)
else do
then do
idxf <- use indexFile
pure $ \x -> ub </> x </> idxf
else pure (ub </>)
-- | Transform a link to page to a full rooted URL
rootedPageLink :: FilePath -> Site FilePath