DEV Community

Cover image for Let's Learn 11ty Part 4: Data in Eleventy
James 'Dante' Midzi
James 'Dante' Midzi

Posted on • Updated on

Let's Learn 11ty Part 4: Data in Eleventy

Liquid syntax error: Unknown tag 'set'

Top comments (5)

Collapse
 
klemcijada profile image
Klemen Červ • Edited

I had a problem with the layout chaining, the front matter was not being evaluated. It seems it doesn't like indentation, there are some spaces in front of some code chunks in the tutorial. So the issue was me copying the code instead of typing it out by myself. Just a heads up :)

Thank you James for these writings on 11ty!

Collapse
 
psypher1 profile image
James 'Dante' Midzi

Thank you for going through the series!

Oh, that's interesting... it's probably because I copied directly from my editor and pasted without stripping the formatting - thank you for the catch :-)

Collapse
 
httpwanderer profile image
Ned

Have just explored 11ty and this series, good thing I scrolled to the comments and found this, thanks!

Collapse
 
psypher1 profile image
James 'Dante' Midzi

Thank you for doing through the series

Collapse
 
rwdev profile image
RW

Just a heads up to anyone following this and is using Liquid instead of Nunjucks (and to save you a bit of Googling):

Liquid does not have a set tag, it's called assign. And it does not allow parenthesis, so for the Next / Previous posts links you'll have to replace the code with the following:

{% assign previousPost = collections.post | getPreviousCollectionItem: page %}
{% assign nextPost = collections.post | getNextCollectionItem: page %}
Enter fullscreen mode Exit fullscreen mode