spogulis no https://github.com/newtype256/website
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
21 rinda
645 B
Haskell
21 rinda
645 B
Haskell
--------------------------------------------------------------------------------
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
import Data.Monoid (mappend)
|
|
import Hakyll
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
main :: IO ()
|
|
main = hakyll $ do
|
|
match "assets/css/*" $ do
|
|
route idRoute
|
|
compile compressCssCompiler
|
|
|
|
match "index.md" $ do
|
|
route $ setExtension "html"
|
|
compile $ pandocCompiler
|
|
>>= loadAndApplyTemplate "_layouts/default.html" defaultContext
|
|
>>= relativizeUrls
|
|
|
|
match "_layouts/*" $ compile templateBodyCompiler
|