Skip to content

Instantly share code, notes, and snippets.

@fourthdimension
Created September 11, 2017 23:57
Show Gist options
  • Save fourthdimension/409e6cec75adba9ed69a7b4f5d25ba39 to your computer and use it in GitHub Desktop.
Save fourthdimension/409e6cec75adba9ed69a7b4f5d25ba39 to your computer and use it in GitHub Desktop.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Recipe",
"author": "Shellys",
"cookTime": "PT20M", **** 20M means 20minutes ****
"prepTime": "PT30M",
"recipeYield": "<#> servings", **** for http://www.shellys.co.in/recipe/khichuri/ - 2 servings ****
"datePublished": "2015-05-18", **** Date recipe page was modified ****
"description": "Your recipe description goes here", **** Recipe Description ****
"image": "http://www.shellys.co.in/wp-content/uploads/tel-koi-1200x500px.jpg", **** Must be absolue URL ****
"recipeIngredient": [
"ingredient 1", **** <Quantity> <Ingredient>, i.e. 6tsp Mustard Oil ****
"ingredient 2", **** <Quantity> <Ingredient>, i.e. 2 cups Water ****
"ingredient 3",
"ingredient 4",
"ingredient 5"
],
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/Comment",
"userInteractionCount": "5" **** <
},
"name": "Khichuri", **** Name of Recipe ****
"nutrition": {
"@type": "NutritionInformation",
"calories": "348.7kcal", **** example 348.7kcal for http://www.shellys.co.in/recipe/tel-koi/ ****
"carbohydrateContent": "67.66g", **** example 67.66g for http://www.shellys.co.in/recipe/tel-koi/ ****
"proteinContent": "15.31g", **** example 15.31g for http://www.shellys.co.in/recipe/tel-koi/ ****
"fatContent": "9 grams fat" **** example 1.27g fat for http://www.shellys.co.in/recipe/tel-koi/ ****
},
"recipeInstructions": "(1) ...., (2) .... " **** take this from the Directions ****
}
</script>
Examples:
cookTime:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment