1--------------------------------------------------------------------------------
2module Hakyll.Core.Metadata
8--------------------------------------------------------------------------------
9import Control.Monad (forM)
13--------------------------------------------------------------------------------
14import Hakyll.Core.Identifier
15import Hakyll.Core.Identifier.Pattern
18--------------------------------------------------------------------------------
19type Metadata = Map String String
22--------------------------------------------------------------------------------
23class Monad m => MonadMetadata m where
24 getMetadata :: Identifier -> m Metadata
25 getMatches :: Pattern -> m [Identifier]
27 getAllMetadata :: Pattern -> m [(Identifier, Metadata)]
28 getAllMetadata pattern = do
29 matches' <- getMatches pattern
30 forM matches' $ \id' -> do
31 metadata <- getMetadata id'
32 return (id', metadata)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list