diff options
author | Stefan Kreutz <mail@skreutz.com> | 2024-01-15 10:35:37 +0100 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2024-01-15 10:35:37 +0100 |
commit | 5aee87ff271d23b4668211aaf3bab4b781375821 (patch) | |
tree | 0007df8342f2a49329bd09b47ba05c884a4781f7 | |
parent | ebf0dc6cea23f2d6ea6d04ebcd3000372d292f19 (diff) | |
download | blog-5aee87ff271d23b4668211aaf3bab4b781375821.tar |
Use absolute URLs
Fixes broken relative links from error pages.
-rw-r--r-- | site.hs | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -23,7 +23,6 @@ main = hakyllWith hakyllConfig $ do compile $ pandocCompiler >>= loadAndApplyTemplate "templates/direct.html" context >>= loadAndApplyTemplate "templates/default.html" context - >>= relativizeUrls match "posts/*" $ do route $ setExtension "html" `composeRoutes` appendIndex @@ -31,7 +30,6 @@ main = hakyllWith hakyllConfig $ do >>= loadAndApplyTemplate "templates/post.html" postContext >>= saveSnapshot "content" >>= loadAndApplyTemplate "templates/default.html" postContext - >>= relativizeUrls create ["posts.html"] $ do route appendIndex @@ -46,7 +44,6 @@ main = hakyllWith hakyllConfig $ do makeItem "" >>= loadAndApplyTemplate "templates/posts.html" archiveContext >>= loadAndApplyTemplate "templates/default.html" archiveContext - >>= relativizeUrls create ["feeds/posts.rss"] $ do route idRoute @@ -80,19 +77,16 @@ main = hakyllWith hakyllConfig $ do getResourceBody >>= applyAsTemplate indexContext >>= loadAndApplyTemplate "templates/default.html" indexContext - -- >>= relativizeUrls match "err.html" $ do route idRoute compile $ pandocCompiler >>= loadAndApplyTemplate "templates/default.html" defaultContext - >>= relativizeUrls match "404.html" $ do route idRoute compile $ pandocCompiler >>= loadAndApplyTemplate "templates/default.html" defaultContext - >>= relativizeUrls match "templates/*" $ compile templateBodyCompiler |