diff options
Diffstat (limited to 'provider/posts/hakyll.md')
-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 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 | |||
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 .numberLines} | 37 | ~~~ {.haskell} |
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 .numberLines} | 64 | ~~~ {.haskell} |
65 | renderTag :: String -- ^ Tag name | 65 | renderTag :: String -- ^ Tag name |
66 | -> Tags | 66 | -> Tags |
67 | -> Compiler (Item String) | 67 | -> Compiler (Item String) |
@@ -101,7 +101,7 @@ I was stumped for a while when my templates wouldn´t | |||
101 | This was easily rectified by realising, that even templates need (of course) a | 101 | This was easily rectified by realising, that even templates need (of course) a |
102 | declaration of how to compile them: | 102 | declaration of how to compile them: |
103 | 103 | ||
104 | ~~~ {.haskell .numberLines} | 104 | ~~~ {.haskell} |
105 | main = hakyllWith config $ do | 105 | main = hakyllWith config $ do |
106 | match "templates/*" $ compile templateCompiler | 106 | match "templates/*" $ compile templateCompiler |
107 | … | 107 | … |
@@ -123,7 +123,7 @@ twice. | |||
123 | 123 | ||
124 | So I did: | 124 | So I did: |
125 | 125 | ||
126 | ~~~ {.haskell .numberLines} | 126 | ~~~ {.haskell} |
127 | main = hakyllWith config $ do | 127 | main = hakyllWith config $ do |
128 | tags <- buildTags "posts/*" tagTranslation' … | 128 | tags <- buildTags "posts/*" tagTranslation' … |
129 | let | 129 | let |