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
You can put eleventyComputed anywhere in the Data Cascade: Front Matter, any Data Files (you could even make an eleventyComputed.js global data file if you wanted to set this for your entire site).
I think it would be helpful to add an example of such a file, similar to the posts/posts.11tydata.js example:
module.exports = {
eleventyNavigation: {
key: data => data.title,
parent: data => data.parent
}
};
(no need to add eleventyComputed: after module.exports, because the file name is already eleventyComputed.)
On the Computed Data | Eleventy, a simpler static site generator. page, in the Advanced Details section, related to
I think it would be helpful to add an example of such a file, similar to the
posts/posts.11tydata.js
example:(no need to add
eleventyComputed:
aftermodule.exports
, because the file name is alreadyeleventyComputed
.)This may prevent silly mistaked like this one.
The text was updated successfully, but these errors were encountered: