From 2d4c925e7f11d1ba04b973753eb1a947622ce806 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 3 Aug 2015 18:34:02 +0200 Subject: Line numbers --- provider/posts/hakyll.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'provider/posts') diff --git a/provider/posts/hakyll.md b/provider/posts/hakyll.md index 77e1736..844616b 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} +~~~ {.haskell .numberLines} 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} +~~~ {.haskell .numberLines} renderTag :: String -- ^ Tag name -> Tags -> Compiler (Item String) @@ -100,7 +100,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} +~~~ {.haskell .numberLines} main = hakyllWith config $ do match "templates/*" $ compile templateCompiler … @@ -122,7 +122,7 @@ twice. So I did: -~~~ {.haskell} +~~~ {.haskell .numberLines} main = hakyllWith config $ do tags <- buildTags "posts/*" tagTranslation' … let -- cgit v1.2.3