summaryrefslogtreecommitdiff
path: root/provider/posts/hakyll.md
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-12 23:42:11 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-12 23:42:11 +0100
commit554ef99207731fb5c3d26e176b04c6c910996bc1 (patch)
tree5f8db9ca3a755df33747c6e760ce87aea8b90939 /provider/posts/hakyll.md
parent4c4f2dcb8ff5c2dfd7758f6dc4d2324f9b344103 (diff)
downloaddirty-haskell.org-554ef99207731fb5c3d26e176b04c6c910996bc1.tar
dirty-haskell.org-554ef99207731fb5c3d26e176b04c6c910996bc1.tar.gz
dirty-haskell.org-554ef99207731fb5c3d26e176b04c6c910996bc1.tar.bz2
dirty-haskell.org-554ef99207731fb5c3d26e176b04c6c910996bc1.tar.xz
dirty-haskell.org-554ef99207731fb5c3d26e176b04c6c910996bc1.zip
no more lineNumbers
Diffstat (limited to 'provider/posts/hakyll.md')
-rw-r--r--provider/posts/hakyll.md8
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)
35structure and used it to add my desired pseudo-tag. 35structure and used it to add my desired pseudo-tag.
36 36
37~~~ {.haskell .numberLines} 37~~~ {.haskell}
38main = hakyllWith config $ do 38main = 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
61the corresponding template to only print "…". 61the corresponding template to only print "…".
62Trimming the list of posts is straightforward. 62Trimming the list of posts is straightforward.
63 63
64~~~ {.haskell .numberLines} 64~~~ {.haskell}
65renderTag :: String -- ^ Tag name 65renderTag :: 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
101This was easily rectified by realising, that even templates need (of course) a 101This was easily rectified by realising, that even templates need (of course) a
102declaration of how to compile them: 102declaration of how to compile them:
103 103
104~~~ {.haskell .numberLines} 104~~~ {.haskell}
105main = hakyllWith config $ do 105main = hakyllWith config $ do
106 match "templates/*" $ compile templateCompiler 106 match "templates/*" $ compile templateCompiler
107 107
@@ -123,7 +123,7 @@ twice.
123 123
124So I did: 124So I did:
125 125
126~~~ {.haskell .numberLines} 126~~~ {.haskell}
127main = hakyllWith config $ do 127main = hakyllWith config $ do
128 tags <- buildTags "posts/*" tagTranslation' … 128 tags <- buildTags "posts/*" tagTranslation' …
129 let 129 let