From c30262575ffdb8161e09c1b6c6d5b07448823cba Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 4 Oct 2015 11:02:18 -0400 Subject: Fix talk paths in title --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 0e0f792..d6283f0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -279,10 +279,12 @@ .pipe(data(function(file) { var stat = fs.statSync(file.path); var $ = cheerio.load(fs.readFileSync(file.path)); + var newpath = file.clone(); return { 'title': $("head title").text(), 'description': $("head meta[name='description']").attr('content'), 'body': $("body").html(), + 'path': newpath.relative.replace('.hbs', '.html'), }})) .pipe(change(performTalkTemplateChange)) .pipe(handlebars(templateData, handlebarsConfig)) -- cgit v1.2.3