fix reversed append-url-index test
This commit is contained in:
parent
318d603c51
commit
4f380f6b80
|
@ -158,10 +158,10 @@ rootedPageLink' = do
|
||||||
ub <- use urlBase
|
ub <- use urlBase
|
||||||
app <- use appendUrlIndex
|
app <- use appendUrlIndex
|
||||||
if app
|
if app
|
||||||
then pure (ub </>)
|
then do
|
||||||
else do
|
|
||||||
idxf <- use indexFile
|
idxf <- use indexFile
|
||||||
pure $ \x -> ub </> x </> idxf
|
pure $ \x -> ub </> x </> idxf
|
||||||
|
else pure (ub </>)
|
||||||
|
|
||||||
-- | Transform a link to page to a full rooted URL
|
-- | Transform a link to page to a full rooted URL
|
||||||
rootedPageLink :: FilePath -> Site FilePath
|
rootedPageLink :: FilePath -> Site FilePath
|
||||||
|
|
Loading…
Reference in a new issue