I need to change this liquid syntax into nunjucks:
{% assign posts = collections.post | getPostsByContributor: contributor.key %}
Is this correct for nunjucks?
{% set posts = collections.post | getPostsByContributor: contributor.key %}
Eleventy gives me error "expected block end in set statement".