From 54e5186a21c017f599088074150b6955d3c00d28 Mon Sep 17 00:00:00 2001 From: Yu Cong Date: Sat, 4 Apr 2026 00:02:41 +0800 Subject: [PATCH] remove fancy routes --- src/site.hs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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