diff options
-rw-r--r-- | provider/posts/hakyll.md | 8 |
1 files changed, 4 insertions, 4 deletions
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 | |||
34 | [Tags](http://hackage.haskell.org/package/hakyll-4.7.2.2/docs/Hakyll-Web-Tags.html#t:Tags) | 34 | [Tags](http://hackage.haskell.org/package/hakyll-4.7.2.2/docs/Hakyll-Web-Tags.html#t:Tags) |
35 | structure and used it to add my desired pseudo-tag. | 35 | structure and used it to add my desired pseudo-tag. |
36 | 36 | ||
37 | ~~~ {.haskell} | 37 | ~~~ {.haskell .numberLines} |
38 | main = hakyllWith config $ do | 38 | main = hakyllWith config $ do |
39 | … | 39 | … |
40 | tags <- buildTags "posts/*" tagTranslation' >>= addTag "All Posts" "posts/*" | 40 | 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 | |||
61 | the corresponding template to only print "…". | 61 | the corresponding template to only print "…". |
62 | Trimming the list of posts is straightforward. | 62 | Trimming the list of posts is straightforward. |
63 | 63 | ||
64 | ~~~ {.haskell} | 64 | ~~~ {.haskell .numberLines} |
65 | renderTag :: String -- ^ Tag name | 65 | renderTag :: String -- ^ Tag name |
66 | -> Tags | 66 | -> Tags |
67 | -> Compiler (Item String) | 67 | -> Compiler (Item String) |
@@ -100,7 +100,7 @@ I was stumped for a while when my templates wouldn´t | |||
100 | This was easily rectified by realising, that even templates need (of course) a | 100 | This was easily rectified by realising, that even templates need (of course) a |
101 | declaration of how to compile them: | 101 | declaration of how to compile them: |
102 | 102 | ||
103 | ~~~ {.haskell} | 103 | ~~~ {.haskell .numberLines} |
104 | main = hakyllWith config $ do | 104 | main = hakyllWith config $ do |
105 | match "templates/*" $ compile templateCompiler | 105 | match "templates/*" $ compile templateCompiler |
106 | … | 106 | … |
@@ -122,7 +122,7 @@ twice. | |||
122 | 122 | ||
123 | So I did: | 123 | So I did: |
124 | 124 | ||
125 | ~~~ {.haskell} | 125 | ~~~ {.haskell .numberLines} |
126 | main = hakyllWith config $ do | 126 | main = hakyllWith config $ do |
127 | tags <- buildTags "posts/*" tagTranslation' … | 127 | tags <- buildTags "posts/*" tagTranslation' … |
128 | let | 128 | let |