1--------------------------------------------------------------------------------
2{-# LANGUAGE OverloadedStrings #-}
3import Data.Monoid (mappend)
7--------------------------------------------------------------------------------
12 compile copyFileCompiler
16 compile compressCssCompiler
18 match (fromList ["about.rst", "contact.markdown"]) $ do
19 route $ setExtension "html"
20 compile $ pandocCompiler
21 >>= loadAndApplyTemplate "templates/default.html" defaultContext
25 route $ setExtension "html"
26 compile $ pandocCompiler
27 >>= loadAndApplyTemplate "templates/post.html" postCtx
28 >>= loadAndApplyTemplate "templates/default.html" postCtx
31 create ["archive.html"] $ do
34 posts <- recentFirst =<< loadAll "posts/*"
36 listField "posts" postCtx (return posts) `mappend`
37 constField "title" "Archives" `mappend`
41 >>= loadAndApplyTemplate "templates/archive.html" archiveCtx
42 >>= loadAndApplyTemplate "templates/default.html" archiveCtx
46 match "index.html" $ do
49 posts <- recentFirst =<< loadAll "posts/*"
51 listField "posts" postCtx (return posts) `mappend`
52 constField "title" "Home" `mappend`
56 >>= applyAsTemplate indexCtx
57 >>= loadAndApplyTemplate "templates/default.html" indexCtx
60 match "templates/*" $ compile templateBodyCompiler
63--------------------------------------------------------------------------------
64postCtx :: Context String
66 dateField "date" "%B %e, %Y" `mappend`
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