Schema guides Platform
How to add schema to Jekyll
Category: static site generator
Plugins and apps
- Liquid includes
- jekyll-seo-tag (meta; pair with custom JSON-LD)
Manual implementation
`_includes/schema.html` + front matter; output in `default` layout head using `jsonify` filter.
Troubleshooting
- Liquid escaping breaks JSON
Use `jsonify` on objects; avoid manual quote juggling. - Wrong @type per layout
Set schema partial per layout (post vs page vs collection).
Overview
Jekyll's Liquid + front matter pipeline is ideal for static JSON-LD: each post can pass title, description, and image into an include that prints one script tag.
Build once in _includes, reuse across layouts, validate HTML output after jekyll build.