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
Sorry, this was kind of a silly mistake from my part, the contents of the _data/eleventyComputed.js file should be:
module.exports = {
eleventyNavigation: {
key: data => data.page.url,
title: data => data.title,
}
};
This correctly writes to the eleventyComputed.eleventyNavigation object, no need to add eleventyComputed: after module.exports, because the file name is already eleventyComputed.
I was doing it wrong:
module.exports = {
eleventyComputed: {
eleventyNavigation: {
key: data => data.page.url,
title: data => data.title,
}
}
};
This was writing to an eleventyComputed.eleventyComputed.eleventyNavigation object, not to to the eleventyComputed.eleventyNavigation object.
Where should the eleventyComputed.js global data file be placed? I have tried many ways, and it does not work:
I'm using v0.11.0-beta.3. Thank you.
The text was updated successfully, but these errors were encountered: