Returning more than one data cascade element in eleventyComputed.js #1489
crockwave
started this conversation in
Uncategorized
Replies: 1 comment 1 reply
-
|
I believe your second module.exports = {
eleventyComputed: {
myCopyrights: data => {
return data.copyrights.feed.entry;
},
myLinks: data => {
return data.links.feed.entry;
}
}
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having difficulty generating more than one
eleventyComputeddata object into the data cascade. Is there a method where I can generate more than one of these data objects?I am using
eleventyComputed.jsin the global data folder, to add data extracted from ajsonfile also in the global data folder. It extracts the.feed.entryportion of the json object into the data cascade. The code looks like this:I want to also add a myLinks data object to the data cascade. When I make the code in
eleventyComputed.jslook like the following, it only adds the last data object to the data cascade, but not both.Beta Was this translation helpful? Give feedback.
All reactions