From 554ef99207731fb5c3d26e176b04c6c910996bc1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 12 Jan 2016 23:42:11 +0100 Subject: no more lineNumbers --- provider/posts/hakyll.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'provider/posts/hakyll.md') diff --git a/provider/posts/hakyll.md b/provider/posts/hakyll.md index 8e8b1fc..910edcb 100644 --- a/provider/posts/hakyll.md +++ b/provider/posts/hakyll.md @@ -34,7 +34,7 @@ function to add new tags to an already existing [Tags](http://hackage.haskell.org/package/hakyll-4.7.2.2/docs/Hakyll-Web-Tags.html#t:Tags) structure and used it to add my desired pseudo-tag. -~~~ {.haskell .numberLines} +~~~ {.haskell} main = hakyllWith config $ do … tags <- buildTags "posts/*" tagTranslation' >>= addTag "All Posts" "posts/*" @@ -61,7 +61,7 @@ A trick I used to implement the desired behaviour of replacing old posts with the corresponding template to only print "…". Trimming the list of posts is straightforward. -~~~ {.haskell .numberLines} +~~~ {.haskell} renderTag :: String -- ^ Tag name -> Tags -> Compiler (Item String) @@ -101,7 +101,7 @@ I was stumped for a while when my templates wouldn´t This was easily rectified by realising, that even templates need (of course) a declaration of how to compile them: -~~~ {.haskell .numberLines} +~~~ {.haskell} main = hakyllWith config $ do match "templates/*" $ compile templateCompiler … @@ -123,7 +123,7 @@ twice. So I did: -~~~ {.haskell .numberLines} +~~~ {.haskell} main = hakyllWith config $ do tags <- buildTags "posts/*" tagTranslation' … let -- cgit v1.2.3