From 5aee87ff271d23b4668211aaf3bab4b781375821 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Mon, 15 Jan 2024 10:35:37 +0100 Subject: Use absolute URLs Fixes broken relative links from error pages. --- site.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'site.hs') 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 -- cgit v1.2.3