Skip to content

Commit 4081444

Browse files
committed
metalsmith-layouts: Handles partials > removed map-handlebars-partials
Metalsmith-layouts automatically registers all partials from within a directory if a string is passed to `partials` with a directory.
1 parent 6b9515a commit 4081444

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const ncp = require('ncp')
1818
const junk = require('junk')
1919

2020
const filterStylusPartials = require('./scripts/plugins/filter-stylus-partials')
21-
const mapHandlebarsPartials = require('./scripts/plugins/map-handlebars-partials')
2221
const anchorMarkdownHeadings = require('./scripts/plugins/anchor-markdown-headings')
2322
const loadVersions = require('./scripts/load-versions')
2423

@@ -143,7 +142,7 @@ function buildlocale (source, locale) {
143142
.use(layouts({
144143
engine: 'handlebars',
145144
pattern: '**/*.html',
146-
partials: mapHandlebarsPartials(metalsmith, 'layouts', 'partials'),
145+
partials: 'layouts/partials',
147146
helpers: {
148147
equals: require('./scripts/helpers/equals.js'),
149148
startswith: require('./scripts/helpers/startswith.js'),

scripts/plugins/map-handlebars-partials.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)