From 2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 29 Jan 2016 18:48:49 +0100 Subject: sub directories in post --- src/Site.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Site.hs b/src/Site.hs index b949807..6cecb85 100644 --- a/src/Site.hs +++ b/src/Site.hs @@ -38,7 +38,7 @@ main = hakyllWith config $ do route idRoute compile copyFileCompiler - math <- getMath "posts/*" mathTranslation' + math <- getMath "posts/**" mathTranslation' forM_ math $ \(_, mathStr) -> create [mathTranslation' mathStr] $ do route idRoute compile $ do @@ -48,9 +48,9 @@ main = hakyllWith config $ do saveSnapshot "alignment" $ fmap snd item return $ fmap fst item - tags <- buildTags "posts/*" tagTranslation' >>= addTag "All Posts" "posts/*" + tags <- buildTags "posts/**" tagTranslation' >>= addTag "All Posts" "posts/**" - match "posts/*" $ do + match "posts/**" $ do route $ setExtension ".html" compile $ do let ctx = mconcat [ defaultContext -- cgit v1.2.3