-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.html
More file actions
98 lines (95 loc) · 2.75 KB
/
Copy pathrecipe.html
File metadata and controls
98 lines (95 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
layout: default
---
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "{{ page.title }}",
"image": [
"{{ page.image }}"
],
"author": {
"@type": "Person",
"name": "{{ page.author }}"
},
"datePublished": "{{ page.date }}",
"description": "{{ page.description }}",
"prepTime": "{{ page.prep_time }}",
"cookTime": "{{ page.cook_time }}",
"totalTime": "{{ page.total_time }}",
"keywords": "{{ page.keywords }}",
"recipeYield": "{{ page.recipe_yield }}",
"recipeCategory": "{{ page.recipe_category }}",
"recipeCuisine": "{{ page.recipe_cuisine }}",
{% if page.calories %}
"nutrition": {
"@type": "NutritionInformation",
"calories": "{{ page.calories }}"
},
{% endif %}
"recipeIngredient":
{{ page.ingredients | jsonify }},
"recipeInstructions": [
{% for step in page.method %}
{
"@type": "HowToStep",
"text": "{{ step }}"
{% if forloop.last == true %}
}
{% else %}
},
{% endif %}
{% endfor %}
]
}
</script>
<div class="columns is-multiline">
<div class="column is-4">
<div class="box has-text-centered">
<strong>Serves:</strong> {{ page.recipe_yield }}
</div>
</div>
<div class="column is-4">
<div class="box has-text-centered">
<strong>Prep time:</strong> {{ page.prep_time | date: "%k hours %M minutes" }}
</div>
</div>
<div class="column is-4">
<div class="box has-text-centered">
<strong>Cook time:</strong> {{ page.cook_time | date: "%k hours %M minutes" }}
</div>
</div>
<div class="column is-4">
<div class="box">
<p class="title is-4">Ingredients</p>
<div class="content">
<ul>
{% for ingredient in page.ingredients %}
<li>{{ ingredient }}</li>
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="column is-8">
<p class="title is-4">Method</p>
<div class="content">
<ol>
{% for step in page.method %}
<li>{{ step }}</li>
{% endfor %}
</ol>
<div class="tags">
{% assign tags = page.keywords | split: "," %}
{% for tag in tags %}
{% include tag.html tag=tag %}
{% endfor %}
</div>
<p>Published: {{ page.date | date: "%b %-d, %Y" }} by {{ page.author }}</p>
</div>
<div class="content">
{{ content }}
</div>
</div>
</div>