If you remove classes from things/index.md, the build fails because _layouts/objects-page.webc does not set classes in the layout front matter which all other layouts do.
This is the error when classes is not defined (when I remove it from the things index front matter things/index.md):
[11ty] classes.filter is not a function (via TypeError)
This is odd because classes=[] is given a default value in the eleventyComputedclasses function signature, so it should still filter over an empty array. But when logging classes I see this:
When creating a new publication with https://github.com/thegetty/quire-starter-objects-test/ things index front matter
things/index.md
usingobjects-page
layout needs to setclasses
:If you remove
classes
fromthings/index.md
, the build fails because_layouts/objects-page.webc
does not setclasses
in the layout front matter which all other layouts do.This is the error when
classes
is not defined (when I remove it from the things index front matterthings/index.md
):[11ty] classes.filter is not a function (via TypeError)
This is odd because
classes=[]
is given a default value in theeleventyComputed
classes
function signature, so it should still filter over an empty array. But when loggingclasses
I see this:It's unclear where these empty items are coming from, but when I log
Array.from(classes)
, I see: