glp-companion/test/fixtures/recipes/allrecipes_style.html

124 lines
4.0 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>Weeknight Turkey Meatballs Recipe | Example Eats</title>
<meta property="og:title" content="Weeknight Turkey Meatballs" />
<meta property="og:image" content="https://example.eats/img/turkey-meatballs-1000.jpg" />
<!-- First script: site chrome (organization + breadcrumbs), no Recipe. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"name": "Example Eats",
"url": "https://example.eats/"
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.eats/" },
{ "@type": "ListItem", "position": 2, "name": "Recipes", "item": "https://example.eats/recipes" }
]
}
]
}
</script>
<!-- Second script: the complex @graph-hosted Recipe payload. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Person",
"name": "Alex Rivera"
},
{
"@type": "Recipe",
"@id": "https://example.eats/recipes/turkey-meatballs/#recipe",
"mainEntityOfPage": { "@type": "WebPage", "@id": "https://example.eats/recipes/turkey-meatballs" },
"name": "Weeknight Turkey Meatballs",
"author": { "@type": "Person", "name": "Alex Rivera" },
"datePublished": "2023-11-08",
"description": "Lean turkey meatballs with a bright tomato sauce.",
"keywords": "meatballs, turkey, high-protein",
"recipeCategory": "Dinner",
"recipeCuisine": "Italian",
"recipeYield": ["6 servings"],
"prepTime": "PT20M",
"cookTime": "PT25M",
"totalTime": "PT45M",
"nutrition": {
"@type": "NutritionInformation",
"calories": "321 calories",
"proteinContent": "29 g",
"carbohydrateContent": "18 g",
"fatContent": "14 g"
},
"image": [
"https://example.eats/img/turkey-meatballs-1000.jpg",
{
"@type": "ImageObject",
"url": "https://example.eats/img/turkey-meatballs-500.jpg"
}
],
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.7,
"ratingCount": 213
},
"video": {
"@type": "VideoObject",
"name": "How to make turkey meatballs",
"contentUrl": "https://example.eats/video/meatballs.mp4"
},
"recipeIngredient": [
"1.25 lb ground turkey",
"1/2 cup breadcrumbs",
"1 large egg",
"28 oz crushed tomatoes",
"2 cloves garlic, minced"
],
"recipeInstructions": [
{
"@type": "HowToStep",
"text": "Heat the oven to 400°F and line a sheet pan."
},
{
"@type": "HowToSection",
"name": "Meatballs",
"itemListElement": [
{
"@type": "HowToStep",
"text": "Mix the turkey, breadcrumbs, and egg; roll into 18 balls."
},
{
"@type": "HowToStep",
"text": "Bake for 18 minutes until browned."
}
]
},
{
"@type": "HowToSection",
"name": "Sauce",
"itemListElement": [
{
"@type": "HowToStep",
"name": "Simmer the garlic and tomatoes for 10 minutes."
}
]
}
]
}
]
}
</script>
</head>
<body>
<article itemscope itemtype="https://schema.org/Recipe">
<h1 itemprop="name">Weeknight Turkey Meatballs</h1>
</article>
</body>
</html>