diff options
| author | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-08 16:03:31 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-06-08 16:03:31 +0200 |
| commit | 3d805c5d8042f5b2d6b86904863bb40b54bd311f (patch) | |
| tree | 3db44bd238239e2668b221893066fe0b1017a143 /site.hs | |
| parent | dc128cbe0e959bb6ae2abb5d5b81794e8b82d049 (diff) | |
| download | reploy-3d805c5d8042f5b2d6b86904863bb40b54bd311f.tar.gz reploy-3d805c5d8042f5b2d6b86904863bb40b54bd311f.tar.bz2 | |
fixup links again
Diffstat (limited to 'site.hs')
| -rw-r--r-- | site.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -127,7 +127,7 @@ checkTarget fp = do -- | Prepend the root path to the given link rootUrl :: FilePath -> Site FilePath -rootUrl fp = (</> fp) <$> use urlBase +rootUrl fp = (</> dropWhile (=='/') fp) <$> use urlBase -- | Process a single link pointing out from a page. processLink :: FilePath -> FilePath -> Site String @@ -280,6 +280,7 @@ makeHTagLinkMeta tag = do pure $ Y.object [("href", fromString link), ("tags", Y.array $ map fromString tag)] +-- | Make metadata for printing out a link to a page makePageLinkMeta :: FilePath -> Site Y.Value makePageLinkMeta mount = do link <- rootUrl mount |
