← Back to Docs
SEO

Recipe Structured Data

How Meridian injects JSON-LD into your recipe pages so Google serves rich results — cook time, ratings, ingredients, and step-by-step cards — without a single plugin.

What gets generated

Every recipe page automatically receives a Recipe schema node. Meridian pulls the title, image, cook time, prep time, yield, ingredients array, and step-by-step instructions from your frontmatter and renders them as a single <script type="application/ld+json"> block in the document head.

Required frontmatter fields

  • title — the recipe name shown in the carousel
  • image — absolute URL; Google requires 1200×1200 minimum
  • cookTime and prepTime — ISO 8601 duration (PT30M)
  • recipeYield — string like "4 servings"
  • ingredients — YAML list; each item becomes an ingredient string
  • instructions — ordered list of HowToStep objects

Optional enrichments

Add aggregateRating with ratingValue and reviewCount to trigger star snippets. Include nutrition.calories for the calorie badge. Meridian validates all fields at build time and warns if required properties are missing.

Testing your markup

Paste your live URL into the Rich Results Test or inspect the head element in DevTools. Meridian also ships a /api/structured-data debug endpoint that returns the raw JSON-LD for any page.