So, I’m making in eleventy and I was follow the tutorial ana it says it add this command:
.sort((a, b) => b.data.date - a.data.date);
And I get this error: Parsing error: Unexpected token .
Hi and welcome to the community.! Can you share your project name and file with us? Thanks
1 Like
you need something left of that dot at the beginning before .sort
1 Like