Permalink
Browse files

Use directoryGroupRecursive so templates may be in subdirectories.

This patch allows layouts and templates to be arbitrarily placed inside
the source folder to enable better organisation, rather than needing to
place them all under the sourcedir folder.

Thanks to deepakjois for the patch.  Closes Issue 5.
  • Loading branch information...
1 parent e971e95 commit 1388233929b3330bea3faf466762b37b59e6e79f John MacFarlane committed Jan 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Yst/Render.hs
View
@@ -105,7 +105,7 @@ renderPage site page = do
let menuHtml = renderNav (pageUrl page) (navigation site)
let layout = fromMaybe (defaultLayout site) $ layoutFile page
srcDir <- canonicalizePath $ sourceDir site
- g <- directoryGroup srcDir
+ g <- directoryGroupRecursive srcDir
attrs <- forM (pageData page) $ \(k, v) -> getData site v >>= \n -> return (k,n)
todaysDate <- liftM utctDay getCurrentTime
rawContents <-

0 comments on commit 1388233

Please sign in to comment.