diff options
-rw-r--r-- | examples/hakyll/tutorials/part07.markdown | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/hakyll/tutorials/part07.markdown b/examples/hakyll/tutorials/part07.markdown index 539dbea..d5c194c 100644 --- a/examples/hakyll/tutorials/part07.markdown +++ b/examples/hakyll/tutorials/part07.markdown @@ -48,16 +48,12 @@ It can be enabled this way: import Text.Hakyll import Text.Hakyll.Hakyll -myHakyllConfiguration :: HakyllConfiguration -myHakyllConfiguration = defaultHakyllConfiguration +myConfig :: HakyllConfiguration +myConfig = (defaultHakyllConfiguration "http://jaspervdj.be") { enableIndexUrl = True - , -- Also set the absoluteUrl field, instead of passing - -- it directly to the hakyll function. If you do not - -- do this, rendered feeds will be invalid! - absoluteUrl = "http://jaspervdj.be" } -main = hakyllWithConfiguration HakyllConfiguration $ do +main = hakyllWithConfiguration myConfig $ do -- Further code here ~~~~~ |