1-- | A target represents one compilation unit, e.g. a blog post, a CSS file...
3{-# LANGUAGE GeneralizedNewtypeDeriving #-}
4module Hakyll.Core.Target
13import Control.Applicative ((<$>))
14import Control.Monad.Reader (ask)
15import Control.Monad.Trans (liftIO)
17import Hakyll.Core.Identifier
18import Hakyll.Core.Target.Internal
19import Hakyll.Core.ResourceProvider
21-- | Get the current identifier
23getIdentifier :: TargetM a Identifier
24getIdentifier = TargetM $ targetIdentifier <$> ask
26-- | Get the resource content as a string
28getResourceString :: TargetM a String
29getResourceString = TargetM $ do
30 provider <- targetResourceProvider <$> ask
31 identifier <- unTargetM getIdentifier
32 liftIO $ resourceString provider identifier
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