diff --git a/src/site.hs b/src/site.hs index dc9fca5..285be3e 100644 --- a/src/site.hs +++ b/src/site.hs @@ -9,16 +9,6 @@ import Hakyll import System.FilePath import Text.Pandoc --------------------------------------------------------------------------------- --- https://www.rohanjain.in/hakyll-clean-urls/ -cleanRoute :: Routes -cleanRoute = customRoute createIndexRoute - where - createIndexRoute ident = takeDirectory p takeBaseName p "index.html" - where - p = toFilePath ident --------------------------------------------------------------------------------- - config :: Configuration config = defaultConfiguration @@ -52,7 +42,7 @@ main = hakyllWith config $ do compile compressCssCompiler match "notes/*" $ do - route cleanRoute + route $ setExtension "html" compile $ do tocCtx <- getTocCtx defaultContext chaoDocCompiler