Skip to content

Commit cfe6cc6

Browse files
committed
Upgrade @metalsmith/layouts to version 3.0.0
This is a major version bump, and the changelog at https://github.com/metalsmith/layouts/releases/tag/v3.0.0 indicates a breaking change that impacts us, namely that we need to explicitly define the pattern and transformer that we wish to use.
1 parent ef7e0dd commit cfe6cc6

3 files changed

Lines changed: 8 additions & 27 deletions

File tree

gulpfile.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,8 @@ gulp.task("metalsmith", async function () {
22662266
.use(
22672267
layouts({
22682268
directory: "docs/templates",
2269+
pattern: "**",
2270+
transform: "nunjucks",
22692271
})
22702272
)
22712273
.use(relative())

package-lock.json

Lines changed: 5 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@babel/runtime": "^7.26.10",
88
"@fluent/bundle": "^0.18.0",
99
"@fluent/dom": "^0.10.0",
10-
"@metalsmith/layouts": "^2.7.0",
10+
"@metalsmith/layouts": "^3.0.0",
1111
"@metalsmith/markdown": "^1.10.0",
1212
"@napi-rs/canvas": "^0.1.68",
1313
"@types/node": "^22.13.10",

0 commit comments

Comments
 (0)