pull/1/head
maia arson crimew 2023-05-19 17:39:17 +02:00
parent 39b7cad25b
commit 201c98364b
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ module.exports = function (eleventyConfig) {
return str.split('/').map(part => encodeURI(part)).join('/')
});
// this appears to potentially be dependent on rendering order
// TODO: this appears to potentially be dependent on rendering order
// TODO: actually add to the post ui
eleventyConfig.addFilter("related", function(obj) {
const post = this.ctx;
const posts = this.ctx.collections.posts.map(post => post.data);