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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- Recipe -->
<div class="recipe" itemscope itemtype="http://schema.org/Recipe">
<div class="infobox">
<!-- Image -->
<div class="photobox">
<a href="#">
<img
src="Images/A8EC812E-EDE1-4DEC-9CB3-DB725ABB8661/C8DC02B3-1872-4556-A8FD-85E72CC198E9.jpg"
itemprop="image"
class="photo photoswipe"
/>
</a>
</div>
<!-- Name -->
<h1 itemprop="name" class="name">Pesto Pasta Salad</h1>
<!-- Info -->
<!-- Rating, categories -->
<p itemprop="aggregateRating" class="rating" value="0"></p>
<p class="metadata">
<!-- Cook time, prep time, servings, difficulty -->
<b>Total Time: </b><span itemprop="totalTime">30</span>
<b>Difficulty: </b><span itemprop="difficulty">Easy</span>
<b>Servings: </b><span itemprop="recipeYield">6</span>
<!-- Source -->
</p>
<div class="clear"></div>
</div>
<div class="left-column">
<!-- Ingredients -->
<div class="ingredientsbox">
<h3 class="subhead">Ingredients</h3>
<div class="ingredients text">
<p class="line" itemprop="recipeIngredient">
<strong>Pesto</strong>:
</p>
<p class="line" itemprop="recipeIngredient">
<strong>30</strong>g basil leaves
</p>
<p class="line" itemprop="recipeIngredient">
<strong>40</strong>g pine nuts
</p>
<p class="line" itemprop="recipeIngredient">
<strong>30</strong>g parmesan cheese
</p>
<p class="line" itemprop="recipeIngredient">
<strong>1</strong> small clove garlic
</p>
<p class="line" itemprop="recipeIngredient">
<strong>3</strong>tbsp extra-virgin olive oil
</p>
<p class="line" itemprop="recipeIngredient">
<strong>1/2</strong> lemon
</p>
<p class="line" itemprop="recipeIngredient">salt</p>
<p class="line" itemprop="recipeIngredient">pepper</p>
<br />
<p class="line" itemprop="recipeIngredient">
<strong>Pasta Salad</strong>
</p>
<p class="line" itemprop="recipeIngredient">
<strong>500</strong>g Fusilli pasta
</p>
<p class="line" itemprop="recipeIngredient">
<strong>160</strong>g baby spinach
</p>
<p class="line" itemprop="recipeIngredient">
<strong>300</strong>g cherry tomatoes
</p>
<p class="line" itemprop="recipeIngredient">
<strong>60</strong>g pine nuts
</p>
<p class="line" itemprop="recipeIngredient">
<strong>200</strong>g fetta cheese
</p>
</div>
</div>
<!-- Nutrition (in two-column mode it goes below the ingredients) -->
</div>
<div class="right-column">
<!-- Description -->
<!-- Directions -->
<div class="directionsbox">
<h3 class="subhead">Directions</h3>
<div itemprop="recipeInstructions" class="directions text">
<p class="line">
<strong>Step 1: Preparation</strong><br />1. Wash the basil leaves
and set aside.<br />2. Toast the pine nuts in a dry pan over
medium heat until golden (about 2-3 minutes), then remove from
heat and set aside.
</p>
<p class="line">
<strong>Step 2: Make the Pesto</strong><br />1. Add the basil
leaves to a small food processor.<br />2. Grate the garlic clove
and add it to the food processor.<br />3. Grate the parmesan
cheese and add it to the food processor.<br />4. Add the toasted
pine nuts to the food processor.<br />5. Whizz everything together
until finely chopped.<br />6. Add the extra-virgin olive oil,
salt, and pepper to taste, and blend again until smooth.<br />7.
Squeeze half a lemon into the pesto and adjust seasoning to taste.
Set aside.
</p>
<p class="line">
<strong>Step 3: Cook the Pasta</strong><br />1. Bring a large pot
of salted water to a boil. Cook the fusilli pasta according to the
package instructions (usually about 10-12 minutes).<br />2. Drain
the pasta, reserving a little bit of pasta water if you need to
loosen the pesto later.<br />3. While the pasta is still hot,
immediately combine it with the pesto, mixing thoroughly so the
pasta is evenly coated.
</p>
<p class="line">
<strong>Step 4: Assemble the Salad</strong><br /><strong
>1. While the pasta cools slightly, prep the remaining
ingredients:</strong
><br />- Slice the cherry tomatoes.<br />- Crumble the Danish feta
cheese.<br /><strong>2. Plate the salad in layers:</strong><br />-
First, add a layer of baby spinach to each plate.<br />- Top with
a layer of the pesto-coated pasta.<br />- Add a layer of cherry
tomatoes, crumbled feta cheese, and toasted pine nuts.<br />3.
Repeat this layering process to create a second portion of salad
on each plate.<br />
</p>
</div>
</div>
<!-- Notes -->
<!-- Nutrition (in regular mode it goes below the notes) -->
<!-- Used in two different places depending on the recipe layout -->
</div>
<div class="clear"></div>
</div>
<!-- Photo gallery is only included when exporting. -->
<!-- PhotoSwipe gallery -->
<link rel="stylesheet" href="Resources/PhotoSwipe/photoswipe.css" />
<link
rel="stylesheet"
href="Resources/PhotoSwipe/default-skin/default-skin.css"
/>
<script src="Resources/PhotoSwipe/photoswipe.min.js"></script>
<script src="Resources/PhotoSwipe/photoswipe-ui-default.min.js"></script>
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<div class="pswp__bg"></div>
<div class="pswp__scroll-wrap">
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<div class="pswp__counter"></div>
<button
class="pswp__button pswp__button--close"
title="Close"
></button>
</div>
<button
class="pswp__button pswp__button--arrow--left"
title="Previous"
></button>
<button
class="pswp__button pswp__button--arrow--right"
title="Next"
></button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var openPhotoSwipe = function (event) {
var pswp = document.querySelector(".pswp");
var element = event.target;
var src = element.getAttribute("src");
// build items array
var items = [
{
msrc: "Images/A8EC812E-EDE1-4DEC-9CB3-DB725ABB8661/CA041C08-3027-4790-97BF-2CC8DCE6C73B.jpg",
src: "Images/A8EC812E-EDE1-4DEC-9CB3-DB725ABB8661/CA041C08-3027-4790-97BF-2CC8DCE6C73B.jpg",
w: 1024.0,
h: 1024.0,
title: "1",
},
];
var index = 0;
for (var i = 0; i < items.length; i++) {
var item = items[i];
if (item.src == src) {
index = i;
}
}
var options = {
index: index,
history: false,
focus: true,
captionEl: true,
fullscreenEl: false,
zoomEl: false,
shareEl: false,
preloaderEl: false,
bgOpacity: 0.9,
showHideOpacity: true,
};
var gallery = new PhotoSwipe(
pswp,
PhotoSwipeUI_Default,
items,
options,
);
gallery.init();
};
var elements = document.querySelectorAll(".photoswipe");
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
element.addEventListener("click", openPhotoSwipe);
}
</script>
</body>
</html>
|