Skip to content

Returning more than one data cascade element in eleventyComputed.js #1489

Answered by pdehaan
crockwave asked this question in General
Discussion options

You must be logged in to vote

I believe your second module.exports would overwrite your first object.
Try something like:

module.exports = {
  eleventyComputed: {
    myCopyrights: data => {
      return data.copyrights.feed.entry;
    },
    myLinks: data => {
      return data.links.feed.entry;
    }
  }
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crockwave
Comment options

Answer selected by crockwave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants