-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I am in the process of creating a docker image for my site. During the process i am upgrading as much as i can (node 4.4.2 , assemble: ~0.16.0, assemble-permalinks: 0.3.1).
However now the permalinks no longer find data from the front matter data:
The code
app.create("blog")
.use(permalink('blog/:first(categories)/:name.html', {
first: function (arr) {
return arr ? arr[0] : ""
}
}));Now throws an error that it can't find categories.
/home/foo/bar/app/build.js:202
if (err) throw err
^
ReferenceError: categories is not defined
at eval (engine.templateSources[1]:9:17)
at Engine.render (/home/foo/bar/main/edc4it-web/app/node_modules/assemble-permalinks/node_modules/placeholders/node_modules/expand/node_modules/engine/index.js:315:27)
at render (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/node_modules/placeholders/node_modules/expand/index.js:139:24)
at resolveString (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/node_modules/placeholders/node_modules/expand/index.js:40:15)
at resolve (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/node_modules/placeholders/node_modules/expand/index.js:14:16)
at interpolate (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/node_modules/placeholders/index.js:23:12)
at View.<anonymous> (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/index.js:72:31)
at View.plugin (/home/foo/bar/main/zoo/app/node_modules/assemble-permalinks/index.js:86:29)
at View.use (/home/foo/bar/main/zoo/app/node_modules/assemble-core/node_modules/templates/node_modules/base-plugins/index.js:94:18)
at Views.<anonymous> (/home/foo/bar/main/zoo/app/node_modules/assemble-core/node_modules/templates/node_modules/base-plugins/index.js:69:13)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels