work.suroh.tk/node_modules/@11ty/eleventy/test/stubs/use-collection.11ty.js

6 lines
151 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
module.exports = function({ collections }) {
return `<ul>${collections.post
.map(post => `<li>${post.data.title}</li>`)
.join("")}</ul>`;
};