eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Per-file data from .11tydata.js files?

Open justinfagnani opened this issue 5 years ago • 0 comments

Is there a way to provide data customized for each input file? Something like this perhaps?

module.exports = (data) => {
  otherPath: computeOtherPath(data.page.inputPath),
};

justinfagnani avatar Jan 28 '20 22:01 justinfagnani