summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2024-01-15 10:35:37 +0100
committerStefan Kreutz <mail@skreutz.com>2024-01-15 10:35:37 +0100
commit5aee87ff271d23b4668211aaf3bab4b781375821 (patch)
tree0007df8342f2a49329bd09b47ba05c884a4781f7
parentebf0dc6cea23f2d6ea6d04ebcd3000372d292f19 (diff)
downloadblog-5aee87ff271d23b4668211aaf3bab4b781375821.tar
Use absolute URLs
Fixes broken relative links from error pages.
-rw-r--r--site.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/site.hs b/site.hs
index f125771..1244959 100644
--- a/site.hs
+++ b/site.hs
@@ -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
Generated by cgit. See skreutz.com for my tech blog and contact information.