You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I'm trying to build up a collection of recent blog posts for a right nav section. I have the following configuration of the collections plugin.
.use(collections({
blogposts: '**/*.md'
}))
Unfortunately, whenever I run this, I was never seeing any data in my collection (there should have been 25 items in the array, but the array was always empty). In digging into the source, the spot that seems to be breaking me is at https://github.com/segmentio/metalsmith-collections/blob/master/lib/index.js#L25. I'm not exactly sure why, but Object.keys always returns an empty array. Further, Object.getOwnPropertyNames also returns an empty array.
I'm running Node 6.0.0 - not sure whether something changed wrt the JavaScript interpreter or if I'm just doing something incredibly dumb, but I'm a little stumped at the moment.
thoughts?
The text was updated successfully, but these errors were encountered:
closing this as it was (as I had kind of suspected) user error. I had this plugin after the markdown plugin in the pipeline, so needed to look for *.html instead of *.md.
Hi - I'm trying to build up a collection of recent blog posts for a right nav section. I have the following configuration of the collections plugin.
Unfortunately, whenever I run this, I was never seeing any data in my collection (there should have been 25 items in the array, but the array was always empty). In digging into the source, the spot that seems to be breaking me is at https://github.com/segmentio/metalsmith-collections/blob/master/lib/index.js#L25. I'm not exactly sure why, but
Object.keys
always returns an empty array. Further,Object.getOwnPropertyNames
also returns an empty array.I'm running Node 6.0.0 - not sure whether something changed wrt the JavaScript interpreter or if I'm just doing something incredibly dumb, but I'm a little stumped at the moment.
thoughts?
The text was updated successfully, but these errors were encountered: