Skip to content
This repository was archived by the owner on Oct 16, 2021. It is now read-only.

Commit 874b294

Browse files
committed
fix: adapt breaking changes of updated dev dependencies
1 parent d8a9780 commit 874b294

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

app/templates/_package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"jstransformer-handlebars": "^1.1.0",
7373
"merge-stream": "^1.0.1",
7474
"metalsmith": "^2.3.0",
75+
"metalsmith-discover-partials": "^0.1.0",
7576
"metalsmith-in-place": "^4.1.1",
7677
"metalsmith-layouts": "^2.1.0",
7778
"metalsmith-register-helpers": "^0.4.0",

app/templates/gulp/tasks/handlebars.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import gulpsmith from 'gulpsmith';
55
const layouts = require('metalsmith-layouts');
66
const inPlace = require('metalsmith-in-place');
77
const registerHelpers = require('metalsmith-register-helpers');
8+
const registerPartials = require('metalsmith-discover-partials');
89

910
import {settings, useHandlebars} from '../config';
1011

@@ -25,14 +26,14 @@ function handlebars(done) {
2526
.use(registerHelpers({
2627
directory: 'src/handlebars/helpers'
2728
}))
29+
.use(registerPartials({
30+
directory: 'src/handlebars/partials',
31+
pattern: /\.hbs$/
32+
}))
2833
.use(layouts({ // Wrap layouts around content pages
29-
engine: 'handlebars',
30-
rename: false,
3134
directory: 'src/handlebars/layouts',
3235
default: 'default.hbs',
33-
pattern: '*.hbs',
34-
partials: 'src/handlebars/partials',
35-
partialExtension: '.hbs'
36+
pattern: '*.hbs'
3637
}))
3738
.use(inPlace({ // Render handlebars content pages
3839
engineOptions: {

app/templates/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const dev = {
3939
},
4040
stats: {
4141
timings: true,
42-
version: false
42+
version: false,
43+
colors: true
4344
}
4445
};
4546

0 commit comments

Comments
 (0)