-
Surprising to JavaScript developers—in LiquidJS both
""
and0
are truthy values! If you’d like to switch to use more JS-familiar conventions, use this in your Eleventy config: eleventyConfig.setLiquidOptions({ jsTruthy: true }); Read more: liquidjs.com/tutorials/truthy-and-falsy.html