This commit is contained in:
maia arson crimew 2023-05-19 17:39:17 +02:00
parent 39b7cad25b
commit 201c98364b

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);