diff --git a/assets/link-data/recipes/index.js b/assets/link-data/recipes/index.js new file mode 100644 index 0000000000..de27ec18eb --- /dev/null +++ b/assets/link-data/recipes/index.js @@ -0,0 +1,6 @@ +import recipe from './spaghetti.json'; +import pastaAglioEOlio from './pasta_aglio_e_olio.json'; +import lasagnaSalad from './lasagna-salad.json'; +import roastTaters from './roast-taters.json'; + +export default [recipe, pastaAglioEOlio, lasagnaSalad, roastTaters]; diff --git a/assets/link-data/recipe/lasagna-salad.json b/assets/link-data/recipes/lasagna-salad.json similarity index 99% rename from assets/link-data/recipe/lasagna-salad.json rename to assets/link-data/recipes/lasagna-salad.json index 5783795e8b..a9675460cb 100644 --- a/assets/link-data/recipe/lasagna-salad.json +++ b/assets/link-data/recipes/lasagna-salad.json @@ -1,5 +1,5 @@ { - "id": 1, + "id": 3, "@context": "http://schema.org/", "@type": "Recipe", "name": "Dick Chmeller's Salad Lasagna", diff --git a/assets/link-data/recipe/pasta_aglio_e_olio.json b/assets/link-data/recipes/pasta_aglio_e_olio.json similarity index 99% rename from assets/link-data/recipe/pasta_aglio_e_olio.json rename to assets/link-data/recipes/pasta_aglio_e_olio.json index 2beb8248fc..22d3e8b88b 100644 --- a/assets/link-data/recipe/pasta_aglio_e_olio.json +++ b/assets/link-data/recipes/pasta_aglio_e_olio.json @@ -1,5 +1,5 @@ { - "id": 1, + "id": 2, "@context": "http://schema.org/", "@type": "Recipe", "name": "Binging with Babish: Pasta Aglio e Olio from \"Chef\"", diff --git a/assets/link-data/recipes/roast-taters.json b/assets/link-data/recipes/roast-taters.json new file mode 100644 index 0000000000..c0609e359e --- /dev/null +++ b/assets/link-data/recipes/roast-taters.json @@ -0,0 +1,38 @@ +{ + "id": 4, + "@context": "http://schema.org/", + "@type": "Recipe", + "name": "Roast Taters", + "suitableForDiet": "https://schema.org/VegetarianDiet", + "author": { + "@type": "Person", + "name": "Kandice Long" + }, + "datePublished": "2019-06-10", + "description": "If you’ve ever wondered how to trick a pasta-loving kid (or perhaps even a carb-obsessed adult) into eating more vegetables, then a “lasagna salad” may just be the very green answer to your prayers. This virtually carb-free creation consists of seven layers of vitamin-rich veggies including a base of iceberg lettuce, layers of sliced onion and slivers of red tomatoes.", + "prepTime": "PT10M", + "cookTime": "PT45M", + "totalTime": "PT50M", + "keywords": "Roast Taters", + "recipeYield": "2 servings", + "recipeCategory": "Dinner", + "recipeIngredient": ["2 potatoes", "1/2 cup olive oil", "salt"], + "recipeInstructions": [ + { + "@type": "HowToStep", + "text": "Preheat the oven to 180ºC - 220ºC. Peel and chop the potatoes into chunks, roughly the size of golf balls." + }, + { + "@type": "HowToStep", + "text": " Parboil the potatoes in a pan of boiling, salted water for 10 minutes, drain, place in a plastic container with some oil and s&p (enough to coat the taters) shaking them to chuff up the edges." + }, + { + "@type": "HowToStep", + "text": "Place some baking paper in a large roasting tray & add some unpeeled garlic, herbs (sage or rosemary leaves are good) if you like." + }, + { + "@type": "HowToStep", + "text": "Place the tray in the oven and cook for 45 minutes, or until golden and crisp." + } + ] +} diff --git a/assets/link-data/spaghetti.json b/assets/link-data/recipes/spaghetti.json similarity index 99% rename from assets/link-data/spaghetti.json rename to assets/link-data/recipes/spaghetti.json index 632fb4c10b..c6c718ceab 100644 --- a/assets/link-data/spaghetti.json +++ b/assets/link-data/recipes/spaghetti.json @@ -1,4 +1,5 @@ { + "id": 1, "@context": "http://schema.org/", "@type": "Recipe", "name": "Audrey Hepburn’s Spaghetti Al Pomodoro Recipe", diff --git a/store/index.js b/store/index.js index 90d0a8455d..7eb2c2bab5 100644 --- a/store/index.js +++ b/store/index.js @@ -1,8 +1,6 @@ import damien from '@/assets/link-data/damien.json'; -import recipe from '@/assets/link-data/spaghetti.json'; -import pastaAglioEOlio from '@/assets/link-data/recipe/pasta_aglio_e_olio.json'; -import lasagnaSalad from '@/assets/link-data/recipe/lasagna-salad.json'; +import recipes from '@/assets/link-data/recipes'; import tomatoes from '@/assets/link-data/products/tomatoes.json'; @@ -16,11 +14,7 @@ export const state = () => ({ href: 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css', }, - recipes: [ - { ...recipe, id: 1 }, - { ...pastaAglioEOlio, id: 2 }, - { ...lasagnaSalad, id: 3 }, - ], + recipes, products: [{ ...tomatoes, id: 1 }], damien, });