From e323135f5f857a731657601c23cd4dfb3cb5d7d7 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Thu, 20 Aug 2026 08:53:59 -0400 Subject: Fixed the extra links in papers --- app/Main.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/Main.hs') diff --git a/app/Main.hs b/app/Main.hs index 86db104..139d00c 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -88,6 +88,10 @@ main = do } getResourceBody >>= applyAsTemplate (mkPaperContext (personCtxt "data/people.yaml" <> journalCtxt "data/journals.yaml") fixedPapers) >>= applyTemplate defaultTemplate baseCtxt + match "www/research/**/*.md" $ do + route $ dropParentRoute 1 `composeRoutes` setExtension ".html" + compile $ getResourceBody >>= myRenderPandoc >>= applyTemplate defaultTemplate baseCtxt + match "www/teaching/index.md" $ do route $ dropParentRoute 1 `composeRoutes` setExtension ".html" -- compile $ myPandocCompiler >>= applyAsTemplate baseCtxt >>= applyTemplate defaultTemplate baseCtxt @@ -121,7 +125,7 @@ main = do -- just copy anything else hanging around match "www/**" $ do - route idRoute + route $ dropParentRoute 1 compile copyFileCompiler -- cgit v1.3.1