summaryrefslogtreecommitdiffstats
path: root/lib/generate/site/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r--lib/generate/site/index.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index 8190381..47d09f2 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -123,12 +123,15 @@ Generator.prototype.prepareFile = function(content, _input) {
return parse.page(page, {
// Local files path
dir: path.dirname(_input) || '/',
- // Project's include folder
- includes_dir: path.join(that.options.input, '_includes'),
+
// Output directory
outdir: path.dirname(_input) || '/',
- // Templating variables
- variables: that.options.variables,
+
+ // Includer for templating
+ includer: parse.includer(that.options.variables, [
+ path.dirname(_input) || '/',
+ path.join(that.options.input, '_includes'),
+ ], path.join, fs.readFileSync)
});
})
.then(function(sections) {