Skip to content
SEWWA

Schema guides Platform

How to add schema to Eleventy

Category: static site generator

Plugins and apps

Manual implementation

Base layout inserts JSON-LD from front matter or `_data` files; use `dump` filters carefully for JSON.

Troubleshooting

Overview

Eleventy shines with JavaScript data files (*.11tydata.js) that return a ready-made schema object—templates only stringify once. Keeps JSON valid and testable.

Use directory data for section defaults (blog vs docs).

Try the free Schema Generator →