diff --git a/hyakko.cabal b/hyakko.cabal
--- a/hyakko.cabal
+++ b/hyakko.cabal
@@ -1,5 +1,5 @@
 name:             hyakko
-version:          0.6.3
+version:          0.6.4
 cabal-version:    >= 1.6
 build-type:       Simple
 license:          MIT
diff --git a/src/Hyakko.lhs b/src/Hyakko.lhs
--- a/src/Hyakko.lhs
+++ b/src/Hyakko.lhs
@@ -87,7 +87,7 @@
 >           code <- T.readFile x
 >           dataDir <- getDataDir
 >           let sections  = parse (getLanguage x) code
->               opts'     = configHyakko opts
+>               opts'     = configHyakko opts dataDir
 >           unless (isNothing $ layout opts') $ do
 >             let layoutDir = fromJust $ layout opts'
 >             copyDirectory opts'$ dataDir </> "resources"
@@ -507,10 +507,11 @@
 **Configure** this particular run of hyakko. We might use a passed-in
 external template, or one of the built-in **layouts**.
 
-> configHyakko :: Hyakko -> Hyakko
-> configHyakko oldConfig =
+> configHyakko :: Hyakko -> FilePath -> Hyakko
+> configHyakko oldConfig datadir =
 >   if isNothing $ template oldConfig then
->     let dir    = "resources" </> (fromJust $ layout oldConfig)
+>     let dir    = datadir </> "resources"
+>                          </> (fromJust $ layout oldConfig)
 >     in oldConfig { template = Just $ dir </> "hyakko.html"
 >                  , css      = Just $ dir </> "hyakko.css"
 >                  }
