~jack/jackkelly-name

e702a5c704cca9902064649ffafb5ea8a3229680 — Jack Kelly 1 year, 9 months ago d981edc
Main: Add garage sale page
1 files changed, 15 insertions(+), 0 deletions(-)

M bin/Main.hs
M bin/Main.hs => bin/Main.hs +15 -0
@@ 1,4 1,5 @@
import Blog (blog)
import Blog.Posts (blogPostCompiler)
import Data.Default (def)
import GHC.IO.Encoding (setLocaleEncoding, utf8)
import Hakyll


@@ 27,6 28,20 @@ main = do

    blog

    -- Temp
    match "garagesale.md" $ do
      let context = mconcat
            [ constField "title" $ sectionLabel ["Garage Sale"]
            , navigationContext navigation
            , baseSiteContext
            ]
      route $ constRoute "garagesale/index.html"
      compile $
        blogPostCompiler
          >>= loadAndApplyTemplate "templates/panel.html" context
          >>= loadAndApplyTemplate "templates/default.html" context
          >>= relativizeUrls

    match "css/*" $ do
      route idRoute
      compile copyFileCompiler