6 lines
151 B
JavaScript
6 lines
151 B
JavaScript
|
module.exports = function({ collections }) {
|
||
|
return `<ul>${collections.post
|
||
|
.map(post => `<li>${post.data.title}</li>`)
|
||
|
.join("")}</ul>`;
|
||
|
};
|