diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-29 18:48:49 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-29 18:48:49 +0100 |
commit | 2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db (patch) | |
tree | 40c506fd7e4be8f15b330cd3994c19353a7af0dd /src | |
parent | d4917763f90da343f85abaf58d402f3b9b0abbf7 (diff) | |
download | dirty-haskell.org-2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db.tar dirty-haskell.org-2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db.tar.gz dirty-haskell.org-2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db.tar.bz2 dirty-haskell.org-2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db.tar.xz dirty-haskell.org-2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db.zip |
sub directories in post
Diffstat (limited to 'src')
-rw-r--r-- | src/Site.hs | 6 |
1 files 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 | |||
38 | route idRoute | 38 | route idRoute |
39 | compile copyFileCompiler | 39 | compile copyFileCompiler |
40 | 40 | ||
41 | math <- getMath "posts/*" mathTranslation' | 41 | math <- getMath "posts/**" mathTranslation' |
42 | forM_ math $ \(_, mathStr) -> create [mathTranslation' mathStr] $ do | 42 | forM_ math $ \(_, mathStr) -> create [mathTranslation' mathStr] $ do |
43 | route idRoute | 43 | route idRoute |
44 | compile $ do | 44 | compile $ do |
@@ -48,9 +48,9 @@ main = hakyllWith config $ do | |||
48 | saveSnapshot "alignment" $ fmap snd item | 48 | saveSnapshot "alignment" $ fmap snd item |
49 | return $ fmap fst item | 49 | return $ fmap fst item |
50 | 50 | ||
51 | tags <- buildTags "posts/*" tagTranslation' >>= addTag "All Posts" "posts/*" | 51 | tags <- buildTags "posts/**" tagTranslation' >>= addTag "All Posts" "posts/**" |
52 | 52 | ||
53 | match "posts/*" $ do | 53 | match "posts/**" $ do |
54 | route $ setExtension ".html" | 54 | route $ setExtension ".html" |
55 | compile $ do | 55 | compile $ do |
56 | let ctx = mconcat [ defaultContext | 56 | let ctx = mconcat [ defaultContext |