diff --git a/gulpfile.js b/gulpfile.js index e2dc9f8..024ad0b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -71,8 +71,8 @@ gulp.task('markup', 'Build markup into ./build directory.', function() { data: config.globs.data, helpers: config.globs.helpers, partials: config.globs.partials, - parsePartialName: function(file) { - return _.last(file.shortPath.split('/')); + parsePartialName: function(option, file) { + return _.last(file.path.split('/')).replace('.hbs', ''); }, bustCache: true })) diff --git a/package.json b/package.json index 77950fc..fb7df56 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "gulp-connect": "^2.3.1", "gulp-docco": "0.0.4", "gulp-front-matter": "^1.3.0", - "gulp-hb": "^2.6.5", + "gulp-hb": "^5.0.1", "gulp-help": "^1.6.1", "gulp-jscs": "^3.0.2", "gulp-notify": "^2.0.1",