diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-08-15 13:43:39 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-08-15 13:43:39 +0200 |
| commit | 800969bed46084c413b22904ba896e4559f4aa4c (patch) | |
| tree | 1e88143d54ab16457d2c98a8a784b6b0e4479987 | |
| parent | b4bbc0f1b3e20bd21210c7786880d0fc337303b8 (diff) | |
| download | reploy-800969bed46084c413b22904ba896e4559f4aa4c.tar.gz reploy-800969bed46084c413b22904ba896e4559f4aa4c.tar.bz2 | |
fix a few docs
| -rw-r--r-- | reploy.hs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -15,7 +15,7 @@ -} {-# LANGUAGE OverloadedStrings #-} --- | The main deployment script. +-- | The main site deployment executable. module Main where import Control.Monad ((>=>), filterM, join, unless, when) @@ -450,7 +450,9 @@ makePageLinkMeta mount = do meta <- use $ pages . to (M.! mount) . pageMeta pure $ Y.object [("href", fromString link), ("meta", meta)] --- | Create the complete metadata structure for the template that renders a given categorical tag pages +-- | Like `makeTagMeta`, but returns only plain YAML without the functions (in +-- outcome the result is easier to work with using the YAML machinery, +-- allowing this to recurse to itself). makeTagMeta' :: [String] -> Site Y.Value makeTagMeta' tag = do taggedPages <- use $ htags . to (M.!? tag) . to (maybe [] id) @@ -474,6 +476,7 @@ makeTagMeta' tag = do , ("listhref", fromString listlink) ] +-- | Create the complete metadata structure for the template that renders a given categorical tag pages makeTagMeta :: [String] -> Site MT.Value makeTagMeta tag = makeTagMeta' tag >>= addGlobalMeta |
