summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-10-04 11:02:18 -0400
committerMonty Taylor <mordred@inaugust.com>2015-10-04 11:02:18 -0400
commitc30262575ffdb8161e09c1b6c6d5b07448823cba (patch)
tree41935a4087a27acd455a877504a499c0bfb571eb
parenta702063dcca92ac140fb00fe3818a38022856c8c (diff)
Fix talk paths in title
-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))