summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gulpfile.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 0e0f792..d6283f0 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -279,10 +279,12 @@
279 .pipe(data(function(file) { 279 .pipe(data(function(file) {
280 var stat = fs.statSync(file.path); 280 var stat = fs.statSync(file.path);
281 var $ = cheerio.load(fs.readFileSync(file.path)); 281 var $ = cheerio.load(fs.readFileSync(file.path));
282 var newpath = file.clone();
282 return { 283 return {
283 'title': $("head title").text(), 284 'title': $("head title").text(),
284 'description': $("head meta[name='description']").attr('content'), 285 'description': $("head meta[name='description']").attr('content'),
285 'body': $("body").html(), 286 'body': $("body").html(),
287 'path': newpath.relative.replace('.hbs', '.html'),
286 }})) 288 }}))
287 .pipe(change(performTalkTemplateChange)) 289 .pipe(change(performTalkTemplateChange))
288 .pipe(handlebars(templateData, handlebarsConfig)) 290 .pipe(handlebars(templateData, handlebarsConfig))