summaryrefslogtreecommitdiff
path: root/app/Main.hs
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2026-08-20 08:53:59 -0400
committerChris Wells <chris@mathematicaster.org>2026-08-20 08:53:59 -0400
commite323135f5f857a731657601c23cd4dfb3cb5d7d7 (patch)
tree96e8a0ce61ad3cac05c15bbd60123e34dcc83eab /app/Main.hs
parentd955dfbfcb2c0ef1dc8056a02eb9b0e81e2de01a (diff)
downloadmain-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar.gz
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar.bz2
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar.lz
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar.xz
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.tar.zst
main-e323135f5f857a731657601c23cd4dfb3cb5d7d7.zip
Fixed the extra links in papers
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs6
1 files changed, 5 insertions, 1 deletions
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