I'm creating a page for authors for my Jekyll website. On this page, I want to show all the posts that this particular author has written.
This is how my posts look like:
title: "Some title"
authors: [author1, author2]
For keeping the list of authors, I use collections.
An author looks like that:
short: author1
name: "Author 1 Full Name"
Now for author1 I want to find all the articles of this author. I'm trying to use where_exp for that:
{% assign articles = site.posts | where_exp: "authors", "authors contains page.short" %}
In this case, page.short contains author1.
But the list articles is empty. Do you know what could be the problem?